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
I have code like this:
{% highlight jsx %} function Pagination(props, children) { var list = []; var _class; for (var i=0; i<props.size; i++) { if (i == props.selected) { _class = 'selected'; } else { _class = ''; } list.push(<li class={_class}>{i}</li>); } return (<ul>{list}</ul>); } {% endhighlight %}
and the output in jekyll blog post, look like this:
white with red have class "err".
"err"
The text was updated successfully, but these errors were encountered:
The issue is that the lexer is parsing <props.size; as a Tag. If you write it as i < prop.size; it will be parsed correctly.
<props.size;
i < prop.size;
That said, if that's valid JSX (ie: if your bundler parses it correctly), jsx-lexer should support it.
jsx-lexer
Sorry, something went wrong.
No branches or pull requests
I have code like this:
and the output in jekyll blog post, look like this:
white with red have class
"err"
.The text was updated successfully, but these errors were encountered: