Search code examples
ckeditormarkdownckeditor5superscript

CKEditor5 markdown and superscript not working?


I am using CKEditor 5, Inline Editor with Markdown and Superscript plugins. As per the git documentation superscript is represented as <sup></sup> in markdown. Setting the data via editor works perfectly. Example: editor.setData("* **Per** modified decision <sup>tree</sup>.") However, editor.getData() returns the markdown without the sup tags. * **Per** modified decision tree. How can I configure the editor to allow tags in the markdown data returned?


Solution

  • This would retain the 'sup' or any other html tags in the markdown output. editor.data.processor.keepHtml('sup')