Wondering about this again. Albert, are you suggesting something like a custom docbook reader might be useful here? https://pandoc.org/custom-readers.html Are thee examples of custom docbook readers you can point to? Thanks, Aidan On Friday, November 25, 2022 at 10:24:13 AM UTC Aidan Reilly wrote: > Hi Albert! > > So here is the complete example: > > $ cat callout.adoc > [source,yaml] > ---- > bmc: > address: > credentialsName: <1> > disableCertificateVerification: True > ---- > <1> `credentialsName` needs a callout > > > $ cat callout.xml > > > >
> > Untitled > 2022-11-25 > > bmc: > address: <bmc_address> > credentialsName: <secret_credentials_name> > disableCertificateVerification: True > > > credentialsName needs a callout > > >
> > > $ pandoc -t markdown -f docbook callout.xml > ``` yaml > bmc: > address: > credentialsName: > disableCertificateVerification: True > ``` > > - `credentialsName` needs a callout > > I'm just not clear whether this can be handled with a lua filter or not. > > Thanks, > > Aidan > > On Wednesday, November 23, 2022 at 5:39:22 PM UTC Albert Krewinkel wrote: > >> >> Aidan Reilly writes: >> >> > A feature of docbook/asciidoc that is really useful is codeblock >> > callouts. It seems that this is not currently supported in the latest >> > pandoc. >> >> I didn't know about callouts, they seem like a nice and useful feature: >> https://docs.asciidoctor.org/asciidoc/latest/verbatim/callouts/ >> >> Could you post the DocBook code generated by asciidoctor? I suspect that >> this feature would require changes to the docbook reader, but maybe once >> could make do with a custom Lua reader. >> >> > Is there a way to tell pandoc to passthrough codeblocks "untouched"? >> > I think if this was the case a lua filter could apply the rest of the >> > markup I need. >> > >> > Example: >> > $ cat callout.adoc >> > [source,yaml] >> > ---- >> > bmc: >> > address: >> > credentialsName: <1> >> > disableCertificateVerification: True >> > ---- >> > <1> `credentialsName` needs a callout> >> > >> > Run through asciidoctor > pandoc: >> > >> > $ asciidoctor -b docbook -o - callout.adoc | pandoc -t markdown -f >> > docbook >> > ``` yaml >> > bmc: >> > address: >> > credentialsName: >> > disableCertificateVerification: True >> > ``` >> > >> > - `credentialsName` needs a callout >> > >> > Any other suggestions or strategies welcome >> >> >> -- >> Albert Krewinkel >> GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124 >> > -- 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/42d817a7-49f5-452a-a38c-d0764ec3e5cdn%40googlegroups.com.