Skip to content
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

Possible to stop parsing children if certain tag is encountered? #164

Closed
joseph1125 opened this issue Dec 22, 2022 · 4 comments
Closed

Possible to stop parsing children if certain tag is encountered? #164

joseph1125 opened this issue Dec 22, 2022 · 4 comments

Comments

@joseph1125
Copy link

Hi, thanks for the awesome library. However, I encountered this special use case, as the platform I'm working on allowed users to type programming code under [code] tag, if user enters anything BBCode alike under code tag, it is possible that the string is being parsed (Example as follows).

[code][align=left][b]avc[/b][/align][/code]

would be transpiled into

<pre><p style="text-align:left"><b>avc</b></p></pre>

while the expected result is

<pre>[align=left][b]avc[/b][/align]</pre>

I would like to ask if it is possible to instruct the parser to stop parsing children when certain tags are encountered.

@JiLiZART
Copy link
Owner

Yep, I think about this feature. And already have an issue for it. #32

@JiLiZART
Copy link
Owner

With new lexer I can implement this feature :)

@JiLiZART
Copy link
Owner

You can track progress here #165

@joseph1125
Copy link
Author

joseph1125 commented Dec 28, 2022

Many thanks, I would definitely check it out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants