This commit is contained in:
parent
a3a6f409dc
commit
1b6a22959b
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@
|
||||||
pkgs = nixpkgs.legacyPackages.${system}.extend cl-nix-lite.overlays.default;
|
pkgs = nixpkgs.legacyPackages.${system}.extend cl-nix-lite.overlays.default;
|
||||||
mm-sh = pkgs.writeShellScriptBin "mm-sh" ''
|
mm-sh = pkgs.writeShellScriptBin "mm-sh" ''
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cat data/$2 |perl -0pe 's/\[\^(.*?)\]\:(.*?)(\n\n)/\<span class="marginnote"\>\2\<\/span\>/gms' > $1.tmp
|
cat $2 |perl -0pe 's/\[\^(.*?)\]\:(.*?)(\n\n)/\<span class="marginnote"\>\2\<\/span\>/gms' > $1.tmp
|
||||||
# perl -0pe 's/\[\^(.*?)\][^:]/\<label for\="\1" class\="margin-toggle"\>/gms'
|
# perl -0pe 's/\[\^(.*?)\][^:]/\<label for\="\1" class\="margin-toggle"\>/gms'
|
||||||
multimarkdown -t html -o $1 $1.tmp && cat $1 |
|
multimarkdown -t html -o $1 $1.tmp && cat $1 |
|
||||||
perl -0pe 's/(\<h2|^)(.*?)(?=(\<h2)|\Z)/\n\<section\>\n\1\2\n<\/section\>\n/gms' |
|
perl -0pe 's/(\<h2|^)(.*?)(?=(\<h2)|\Z)/\n\<section\>\n\1\2\n<\/section\>\n/gms' |
|
||||||
|
|
Loading…
Reference in a new issue