home.social

#md2gemini — Public Fediverse posts

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

  1. Writing #AsciiDoc articles that come up nice in both #HTML via #Jekyll, and as #Gemini #GemText through conversion via #markdown and #md2gemini is quite challenging...

    #blogging #gemLog #Blog

  2. @chmod777 For what it's worth, I've had acceptable results so far with #md2gemini myself: gemini://fixato.org/

    And that is with the #markdown being generated through #pandoc from #asciidoc source files, via #asciidoctor's intermediate #docbook files.

    You might get even better results even if your source files are markdown already. :)

  3. 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.

  4. 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.