Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"double emphasis" bug when converting to asciidoc #7803

Closed
tx-pandoc opened this issue Jan 5, 2022 · 2 comments
Closed

"double emphasis" bug when converting to asciidoc #7803

tx-pandoc opened this issue Jan 5, 2022 · 2 comments
Labels

Comments

@tx-pandoc
Copy link

(Creating bug report as suggested by John on pandoc-discuss on Tue, 04 Jan 2022 19:17:42 -0800)

Description
In some cases when doing HTML to asciidoc conversion with pandoc it creates wrongly "intraword emphasis" instead of simple "emphasis". (And this in turn seems to trigger also a bug in asciidoc when creating Docbook XML.)

Example:
<a href=x.htm><i>Xx</i></a><i>,</i>
... will be converted to...
link:x.htm[_Xx_]__,__

Versions used
pandoc 2.16.2 (macOS ports)
asciidoc 9.1.0

More details
I created a few test cases and collected the results in a simple CSV table.

double-emphasis-test-results.csv
double-emphasis-test-results

@tx-pandoc tx-pandoc added the bug label Jan 5, 2022
@jgm
Copy link
Owner

jgm commented Jan 5, 2022

Thanks for this very useful report.

@jgm
Copy link
Owner

jgm commented Jan 5, 2022

Trying these out (with both asciidoc and asciidoctor), I get a funny result for

link:x.htm[_Xx_]__bcd__e

Neither processor seems to parse this as a link.
I get:
Screen Shot 2022-01-05 at 2 38 20 PM

@jgm jgm closed this as completed in ea74582 Jan 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants