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

<em> inserted incorrectly inside a hyperlink #323

Closed
zxteloiv opened this issue Mar 15, 2016 · 1 comment
Closed

<em> inserted incorrectly inside a hyperlink #323

zxteloiv opened this issue Mar 15, 2016 · 1 comment
Assignees
Labels

Comments

@zxteloiv
Copy link

@zxteloiv zxteloiv commented Mar 15, 2016

Hi, actually I found the problem by converting my notes into markdown format.

I have a snippet like this

[Stochastic_Processes_-_1.4_analysis](Stochastic_Processes_-_1.4_analysis)

or for simplicity

[A-_B](A_-B)

Feed it to kramdown I got the following

$ echo "[A-_B](A_-B)" | kramdown
<p>[A-<em>B](A</em>-B)</p>

which should be <p><a href="A_-B">A-_B</a></p>.

I tried all the four, only the last one yields this problem:

  • [A_-B](A-_B) ok
  • [A-_B](A-_B) ok
  • [A_-B](A_-B) ok
  • [A-_B](A_-B)

It works well in the javascript port of kramdown, i.e., the kramed.

$ echo "[A-_B](A_-B)" | kramed
<p><a href="A_-B">A-_B</a></p>

My environment is

  • OS X El Capitan
  • ruby 2.0.0p645 (2015-04-13 revision 50299) [universal.x86_64-darwin15]
  • gem 2.0.14
  • kramdown 1.9.0

Thank you for reading this!

@gettalong gettalong self-assigned this Mar 15, 2016
@gettalong gettalong added the bug label Mar 15, 2016
@gettalong
Copy link
Owner

@gettalong gettalong commented Mar 15, 2016

Thanks for reporting, this is definitely a bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants