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

Emphasis not rendered #137

Open
tstorch opened this issue Dec 22, 2014 · 2 comments
Open

Emphasis not rendered #137

tstorch opened this issue Dec 22, 2014 · 2 comments

Comments

@tstorch
Copy link

tstorch commented Dec 22, 2014

I was using Hugo, when an rendering error occured.

The output from the code

package main

import (
    "fmt"

    "github.com/russross/blackfriday"
)

func main() {
    strings := []string{"„*Hautab*“", "„**Hautab**“", "„***Hautab***“"}

    for _, v := range strings {
        parsed := blackfriday.MarkdownCommon([]byte(v))
        fmt.Printf("%s", parsed)
    }
}

is

<p>„*Hautab*“</p>
<p>„<strong>Hautab</strong>“</p>
<p>„<strong><em>Hautab</em></strong>“</p>

when „*Hautab*“ should obviously be rendered to <p>„<em>Hautab</em>“</p>.

It might have something to do with the fact, that I'm using utf8 quotation marks.

@tw4452852
Copy link
Contributor

I think this is because of the unicode of now the we walk through input by char instead of rune

@rtfb
Copy link
Collaborator

rtfb commented Nov 3, 2015

Here's a possible workaround, if it's feasible for you: turn off EXTENSION_NO_INTRA_EMPHASIS and it works as you expect.

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

3 participants