diff options
| author | dvs1 | 2025-01-18 17:34:49 +1000 |
|---|---|---|
| committer | dvs1 | 2025-01-18 17:34:49 +1000 |
| commit | b8d23d63345d37a2706c363e41d8c857b814d836 (patch) | |
| tree | e6371e32a492ab08f12d1c47e37fdaae37fb9ace | |
| parent | Use cmake-gfm to parse the body for Foswiki. (diff) | |
| download | notYetAnotherWiki-b8d23d63345d37a2706c363e41d8c857b814d836.zip notYetAnotherWiki-b8d23d63345d37a2706c363e41d8c857b814d836.tar.gz notYetAnotherWiki-b8d23d63345d37a2706c363e41d8c857b814d836.tar.bz2 notYetAnotherWiki-b8d23d63345d37a2706c363e41d8c857b814d836.tar.xz | |
Use cmark-gfm for PmWiki as well.
| -rwxr-xr-x | SuckItPm | 6 |
1 files changed, 5 insertions, 1 deletions
| @@ -63,7 +63,11 @@ do | |||
| 63 | # -e 's/\{\.urllink.*\}//g' \ | 63 | # -e 's/\{\.urllink.*\}//g' \ |
| 64 | # -e 's/\{\.urllink$//g' | 64 | # -e 's/\{\.urllink$//g' |
| 65 | 65 | ||
| 66 | echo "<hr/><p><a href=\"${URL}/?n=${base}.${file}\">Original page</a> where you can edit it.</p>" >> PmWiki/${base}/${file}.md | 66 | #echo "<hr/><p><a href=\"${URL}/?n=${base}.${file}\">Original page</a> where you can edit it.</p>" >> PmWiki/${base}/${file}.md |
| 67 | echo -e "****\n[Original page](${URL}/${base}/${file}) where you can edit it." >> PmWiki/${base}/${file}.md | ||
| 68 | |||
| 69 | # pandoc -t html -f commonmark_x --self-contained PmWiki/${base}/${file}.md > PmWiki//${base}/${file}.htm | ||
| 70 | cmark-gfm -t html -e footnotes -e table -e strikethrough PmWiki/${base}/${file}.md > PmWiki//${base}/${file}.body | ||
| 67 | done | 71 | done |
| 68 | 72 | ||
| 69 | notYetAnotherWiki.lua | 73 | notYetAnotherWiki.lua |
