RpNation / bbcode

RpNation's Official BBCode Implementation for Discourse
GNU General Public License v3.0
1 stars 3 forks source link

Convert all to use toNode function. Add check for div tag #124

Closed Alteras1 closed 1 week ago

Alteras1 commented 1 week ago

Fixes issue spotted in #123

Converts all node creation to use the toNode() function. Issue is caused by top down parsing of bbob and lack of distinction between a bbcode tag and a html tag.

All tags should now use toNode() function, which will add a gen: true property that tags with html names ([div] in this case) can use to determine if parsing is needed.