From 949cd945b0cba9b3b5f88dedce55d97d047888e8 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Tue, 19 Sep 2023 21:27:41 +0300 Subject: [PATCH] cleanup the markdown doc build, still not usable without manual tweaking... Signed-off-by: Alex A. Naanou --- Makefile | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) diff --git a/Makefile b/Makefile index 59b7ea0..19edca3 100644 --- a/Makefile +++ b/Makefile @@ -85,8 +85,7 @@ endif # markdown dialect... # -# XXX still needs some tweaking... -MD_FORMAT ?= markdown_github +MD_FORMAT ?= gfm # debug output... @@ -173,26 +172,11 @@ LN := cp -l # - |..| - verbatim does not work... # - || - parts of doc omitted... # - verbatim blocks get merged sometimes... +# - does not resolve \jobname in include... # - ... # ...not sure if this can be tweaked... -#%.md: %.tex -# pandoc -t $(MD_FORMAT) -s $< -o $@ - -# XXX EXPERIMENTAL... -# XXX revise: -# ...for this to work we need to replace: -# \documentclass{ltxdoc} -# to: -# \documentclass[markdownextra]{internet} -# XXX install the internet class... -# https://github.com/loopspace/latex-to-internet -# ...needs testing... %.md: %.tex - cat $< \ - | sed 's/documentclass{ltxdoc}/documentclass[markdownextra]{internet}/' \ - > $<.tmp - mv $<{.tmp,} - $(TEX) $< $(STDERR) + pandoc -t $(MD_FORMAT) -s $< -o $@ # meta-section...