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

Intraword emphasis in Markdown #1066

Closed
nahoj opened this issue Nov 21, 2013 · 1 comment
Closed

Intraword emphasis in Markdown #1066

nahoj opened this issue Nov 21, 2013 · 1 comment

Comments

@nahoj
Copy link

nahoj commented Nov 21, 2013

% pandoc --version
pandoc 1.12.1
[...]
% cat bug.md 
***a**b **c**d*
% pandoc bug.md
<p><em><strong>a</strong>b <strong><strong>a</strong>c</strong>d</em></p>

# whereas I would expect:
<p><em><strong>a</strong>b <strong>c</strong>d</em></p>
@jgm
Copy link
Owner

jgm commented Nov 21, 2013

Ouch, that's a bad one. Getting parsing rules for nested emph and
strong that have good performance characteristics is surprisingly tricky.

Workaround for now: use _ for the exterior emph.

+++ nahoj [Nov 21 13 07:15 ]:

% pandoc --version
pandoc 1.12.0.2
[...]
% cat bug.md 
***a**b **c**d*
% pandoc bug.md
<p><em><strong>a</strong>b <strong><strong>a</strong>c</strong>d</em></p>

# whereas I would expect:
<p><em><strong>a</strong>b <strong>c</strong>d</em></p>

Reply to this email directly or view it on GitHub:
#1066

@jgm jgm closed this as completed in cf149fc Nov 23, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants