Fixed Editor - blank line between two formated lines (for ie: bold/italic) are eaten

Mike

XenForo developer
Staff member
Looks like my change to simplify the output BB code as far as possible has re-exposed this.
 

cclaerhout

Well-known member
Looks like my change to simplify the output BB code as far as possible has re-exposed this.
I'm curious, do you use an iterator (prev, next, rewind) like you did with the parser or do you use some regex callbacks to "pre-parse/fix" (I'm not sure of the name) the html<=>bbcode converter?
 

Mike

XenForo developer
Staff member
This should be fixed now.

It is using regexes, but it's using the BB code parser to help understand things in more detail.
 

cclaerhout

Well-known member
This should be fixed now.

It is using regexes, but it's using the BB code parser to help understand things in more detail.
Just a link to the SCEditor that seems to have a pure JS html<=>bbcode converter&parser which works very well (code available on Github).
Edit: oups, it still not perfect.
 
Last edited:
Top