You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
ottworks
changed the title
@bbob/parser: Would-be attributes on invalid tags being eaten during parse
Would-be attributes on invalid tags being eaten during parse
Jan 6, 2020
* feat(parser): write test for only allowed tags parsing
* chore(parser): rename only allowed test
* fix(parser): only allowed tag rendering
* fix(plugin-helper): add new TagNode toString tests
With onlyAllowTags set to ['b', 'i', 'u'], this happens:
Input:
hello [blah foo="bar"]world[/blah]
Output:
hello [blah]world[/blah]
It's still returned as a string in the AST, but there's some sort of pre-processing going on that strips out the would-be attributes.
Repro: https://jsfiddle.net/6acujnf5/3/
The text was updated successfully, but these errors were encountered: