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

Nested bbcode tags #3

Open
hansgv opened this issue Apr 30, 2018 · 3 comments
Open

Nested bbcode tags #3

hansgv opened this issue Apr 30, 2018 · 3 comments
Assignees
Labels

Comments

@hansgv
Copy link

hansgv commented Apr 30, 2018

Do nested bbcode tags work? Like so:

[quote][quote]He said[/quote]she said[/quote]

@chriskonnertz
Copy link
Owner

chriskonnertz commented Apr 30, 2018

Hello,

yes:

<blockquote><blockquote>He said</blockquote>she said</blockquote>

Plus:

[quote][b]He said[/b]she said

=>

<blockquote><strong>He said</strong>she said</blockquote>

Missing closing tags will be added. However, this is a simple approach that does not always create great results:

[quote][b]He said she said[/quote]

We would expect:

<blockquote><strong>He said she said</strong></blockquote>

But what we get is:

<blockquote><strong>He said she said</blockquote></strong>

@hansgv
Copy link
Author

hansgv commented Apr 30, 2018

Awesome! How about [quote date='needs-to-be-parsed']Something irrelevant[/quote]

@chriskonnertz
Copy link
Owner

chriskonnertz commented May 1, 2018

I believe adding named attributes is not something that BBCode supports... So no, currently that is not possible.

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

No branches or pull requests

2 participants