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
Given a string that has two nearby closing tags:
let tokens = lolight.tok('<strong>a</strong> <em>b</em>');
The slashes are interpreted as regex:
[ ['pct', '<'], ['nam', 'strong'], ['pct', '>'], ['nam', 'a'], ['pct', '<'], ['rex', '/strong><em>b</'], ['nam', 'em'], ['pct', '>'] ]
So when I create the markup from the tokens
tokens = tokens.map(function ([className, code]) { return '<span class="ll-' + className + '">' + code + '</span>'; }); document.getElementById('example').innerHTML = tokens.join('');
The output is this:
Instead of the desired:
Version: 1.4.0 Reproduction: https://jsfiddle.net/s96uz7qL
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Given a string that has two nearby closing tags:
The slashes are interpreted as regex:
So when I create the markup from the tokens
The output is this:
Instead of the desired:
Version: 1.4.0
Reproduction: https://jsfiddle.net/s96uz7qL
The text was updated successfully, but these errors were encountered: