Package: leveldb-doc
Version: 1.22-3
Severity: normal
Tags: patch

Dear Maintainer,

Some html files in the leveldb-doc package are converted from markdown files,
but fenced code blocks (``` code ```) are not converted.


These files are converted by 'markdown' command (from the discount package).
But this command doesn't handle fenced code blocks by default.

>From manpage of markdown:
>     -f flags
>              Set or clear various translation flags.   The flags are in a
>              comma-delimited list, with an optional + (enable), - (disable),
>              or no (disable) lprefix on each flag.
(snip)
>              fencedcode      Allow fenced code blocks (not default).

Here is a patch to debian/rules:
---begin
@@ -45,7 +45,7 @@
        echo "Convert md files to HTML"
        for md in `ls debian/leveldb-doc/usr/share/doc/leveldb-doc/*.md`; do \
                html=`echo $${md} | cut -d. -f1`.html; \
-               markdown $${md} >$${html}; \
+               markdown -f fencedcode $${md} >$${html}; \
        done

 override_dh_auto_test:
---end


Regards,
Nobuhiro Ban

Reply via email to