johannschopplich / kirby-writer-marks

Custom marks for Kirby's writer field – footnote mark included
35 stars 6 forks source link

Font styles in Mark destroys Mark #7

Closed jonasholfeld closed 2 years ago

jonasholfeld commented 2 years ago

If I try to add italic / bold / underline / crossed text inside a mark, the plugin automatically splits the mark into three sections so that the highlighted text is now in its own mark:

Bildschirmfoto 2022-04-13 um 10 42 45
johannschopplich commented 2 years ago

You will have to adapt the schema to your needs:

https://github.com/johannschopplich/kirby-writer-marks/blob/fc700915ef2d4cb52f92ac0def1e3b9235ba94a2/src/Marks/Footnote.js#L19

The custom footnote mark doesn't allow italic text. The mark as well as this repo is just an example. Thus, I will close this.