Jump to content

Easier PHP BBCode plugins?

Cap'n Refsmmat

Recommended Posts

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


This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...