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

Render discrepancy when combining backtick (for code), underscore and asterisk (em) #141

Closed
sciurius opened this issue Jun 25, 2020 · 0 comments

Comments

@sciurius
Copy link

  1. What version of goldmark are you using? : assuming latest

  2. What version of Go are you using? : go version go1.13.11 linux/amd64

  3. What operating system and processor architecture are you using? : Fedora 31 AMD64

  4. What did you do? : See attached program

package main

import (
    "bytes"
    "fmt"
    "github.com/yuin/goldmark"
)

func main () {
    var buf bytes.Buffer
    goldmark.Convert([]byte("`{%`_name_`%}`"), &buf)
    goldmark.Convert([]byte("`{%`*name*`%}`"), &buf)
    fmt.Println(buf.String())
}

emrender.zip

  1. What did you expect to see? :

According to the specs, `{%`_name_`%}` and `{%`*name*`%}` should both render to <p><code>{%</code><em>name</em><code>%}</code></p>

  1. What did you see instead? :

`{%`_name_`%}` is rendered to <p><code>{%</code>_name_<code>%}</code></p>

  1. Did you confirm your output is different from CommonMark online demo or other official renderer correspond with an extension?: yes
@yuin yuin closed this as completed in 3c3d448 Jul 2, 2020
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

1 participant