by the way:
callouts: https://docs.asciidoctor.org/asciidoc/latest/verbatim/callouts/
in docbook XML it looks like this:
----
Examples
module
demo::basic::Quine
import IO;
import String;
void quine(){
println(program); **
println("\"" + escape(program, ("\"" : "\\\"", "\\" : "\\\\")) + "\";"); **
}
str program = **
"module demo::basic::Quine
import IO;
import String;
void quine(){
println(program);
println(\"\\\"\" + escape(program, (\"\\\"\" : \"\\\\\\\"\", \"\\\\\" :
\"\\\\\\\\\")) + \"\\\";\");
}
str program =";
**
**
A remarkable point in the code: the string variable
program has as value
the text of the module Quine upto here.
**
----
Op maandag 30 mei 2022 om 20:50:29 UTC+2 schreef Jasper Timmer:
> I'm trying to convert some asciidoc documentation to markdown. I found
> this snippet online:
> https://tinyapps.org/blog/201701240700_convert_asciidoc_to_markdown.html
>
> works pretty darn well :) only callouts are not preserved. They just
> completely disappear. How can I fix that?
>
> I installed latest deb from github.
>
> Thanks!
> Jasper
>
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/0748d081-5c90-4212-99e2-98b70cfc1da2n%40googlegroups.com.