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
BNF #1402
Comments
Are you asking about code highlighting? Marked doesn't do any highlighting but you can add a highlighter in the options |
Yeah, I use highlight.js, but met a problem. let renderer = new marked.Renderer();
marked.setOptions({
renderer: renderer,
breaks: true,
smartLists: true,
});
let html = marked(text); When I use BNF like
Marked converts above markdown string to html with class attributes like <pre><code class="language-bnf">name ::= identifier</code></pre> but without <pre><code class="bnf hljs nginx"><span class="hljs-attribute">name</span> ::= identifier</code></pre> why ?
and I got <pre><code class="bnf hljs"></code></pre> So I don't understand ... Thanks @UziTech |
What seems to be invalid, the HTML that is output by marked? Whatever |
uh... You're right, I thought |
Does marked support BNF, EBNF ?
The text was updated successfully, but these errors were encountered: