Hi,
I've been implementing a simple Markdown formatting plugin. As this will be a per-note optional formatter (simply iff the note starts with '#MD#' then it will be Markdown formatted, otherwise the MantisCoreFormatter is used), I'm struggling to allow the different formatters to co-exist.
If the MantisCoreFormatter gets the text first, I have to "deformat" it (guess the original text) before giving it to the Markdown formatter;
if the Markdown formatter gets it first, MantisCoreFormatter steps in and garbles the already-html text.
So now I reimplement the MantisCoreFormatter inside my Markdown formatter, but this feels ugly.
(Code is available at https://github.com/tgulacsi/mantisbt-pl ... rkdown.php)
Any better idea?
I want to have all "old" and non-Markdown text to be formatted as now (as MantisCoreFormatter does), and give the Markdown formatter (Parsedown) only flagged text.
Thanks,
Tamás Gulácsi
Formatter plugin (Markdown)
Moderators: Developer, Contributor