Cap'n Refsmmat Posted July 28, 2010 Share Posted July 28, 2010 I developed a custom BBCode plugin to perform LaTeX mathematics rendering using [math] tags. According to the custom BBCode plugin documentation, the preferred way to implement this is to use a regular expression to capture all the uses of the BBCode. However, I believe IP.Board already has a well-developed tokenizing BBCode parser designed to work around the shortcomings of regular expressions. Would it be possible to make it easy to hook into the tokenizing parser? For example, it could be possible to call the parser with a tag name and a callback function which is passed the {option} and {content} portions of the tag, returning the replacement for the tag? I mean, this isn't exactly essential -- the regex works just fine so far -- but it would make things easier for custom BBCode developers. Link to comment Share on other sites More sharing options...
bfarber Posted July 28, 2010 Share Posted July 28, 2010 Hrmm. I suppose it would be possible to move the tokenized approach to a function that you could then call from your custom bbcode plugin. Will have to think about it. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.