Skip to content

pandoc html to asciidoc conversion of <a title target> tags does not work as expected #10084

Answered by alerque
shinguz asked this question in Q&A
Discussion options

You must be logged in to vote

Your message is really hard to follow. Use code blocks to wrap commands and output that might get messed up by Markdown used here on GitHub.

I just checked my Pandoc version and get the same output:

$ echo '<a href="https://www.example.com" target="_blank" title="Example title">Example</a>' | pandoc --wrap=none -f html -t asciidoc
https://www.example.com[Example]
$ pandoc --version
pandoc 3.3
$ pandoc --list-extensions=asciidoc
-ascii_identifiers
+auto_identifiers
-east_asian_line_breaks
-gfm_auto_identifiers

Docs of AsciiDoc link attributes:

https://docs.asciidoctor.org/asciidoc/latest/macros/link-macro-attribute-parsing/

I assume there will be a way to write a Lua filter to process the …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by shinguz
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants