fix(editor): don't labellize tags with double dash

This commit is contained in:
Colin Darie 2023-12-18 18:40:51 +01:00
parent d01dc82e8c
commit 3aae580e26
No known key found for this signature in database
GPG key ID: 8C76CADD40253590

View file

@ -106,7 +106,7 @@ function getEditorOptions(
extensions.push(
Mention.configure({
renderLabel({ node }) {
return `--${node.attrs.label}--`;
return node.attrs.label;
},
HTMLAttributes: {
class: 'fr-badge fr-badge--sm fr-badge--info fr-badge--no-icon'