home.social

#md2gemini — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #md2gemini, aggregated by home.social.

  1. Looks like I am actually getting pretty decent results by:

    converting #adoc with #asciidoc to #DocBook #xml:

    asciidoc -b docbook "$input"

    which I then convert to #markdown with #pandoc:

    ./pandoc-2.11.4/bin/pandoc --wrap=preserve -f docbook -t markdown_strict "${base}.xml" -o "${base}.md"

    which I then pre-process a bit with my own #Python3 before converting it to #gemtext with #md2gemini:

    md2gemini --links paragraph "${base}.md" > "${base}.gmi"

    I'll post the script once I'm done.

  2. Looks like I am actually getting pretty decent results by:

    converting #adoc with #asciidoc to #DocBook #xml:

    asciidoc -b docbook "$input"

    which I then convert to #markdown with #pandoc:

    ./pandoc-2.11.4/bin/pandoc --wrap=preserve -f docbook -t markdown_strict "${base}.xml" -o "${base}.md"

    which I then pre-process a bit with my own #Python3 before converting it to #gemtext with #md2gemini:

    md2gemini --links paragraph "${base}.md" > "${base}.gmi"

    I'll post the script once I'm done.