We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
my markdown:
```java public interface List<E> extends Collection<E> { // 内容省略 }
my go code: ```golang input := []byte(article.Content) unsafe := blackfriday.Run(input, blackfriday.WithExtensions(blackfriday.CommonExtensions)) p := bluemonday.UGCPolicy() p.AllowAttrs("class").Matching(regexp.MustCompile("^language-[a-zA-Z0-9]+$")).OnElements("code") output := string(p.SanitizeBytes(unsafe))
my html text:
<code>java public interface List<E> extends Collection<E> { // 内容省略 } </code>
show in browser:
all line and breaks has been deleted, expected, it will show look like this:
public interface List<E> extends Collection<E> { // 内容省略 }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
my markdown:
my html text:
show in browser:
all line and breaks has been deleted, expected, it will show look like this:
The text was updated successfully, but these errors were encountered: