Waterhole uses the TextFormatter library to safely format markup in posts and comments. You can hook in to add or remove formatting syntax and change rendered HTML.
Before getting started, it is worth reading the TextFormatter documentation to understand how it works at a high level, and what plugins and settings are available. The TextFormatter community is a great place to get support.
In the parsing phase, user-submitted text is parsed into an XML document for storage in the database. To hook into this phase of formatting, pass a callback to the Formatter extender's parsing method:
The rendering phase is when the XML document stored in the database is transformed into HTML. To hook into this phase of formatting, pass a callback to the Formatter extender's rendering method:
You're going a bit too fast! Take a break and try again in a moment.
Something went wrong! Please reload the page and try again.
Something Went Wrong
To pick up a sortable item, press space or enter. While dragging, use the arrow keys to move the item. Press space or enter again to drop the item in its new position, or press escape to cancel.