Hi guys,
I’m currently working on importing metadata from Todoist into Craft.
I wanted to import labels from todoist and format them highlighted and also emphasized.
I use this snippet to include the name of the label into a string:
mdString = mdString + " *::@" + label.name + "::*";
which is then parsed by the craft.markdown.markdownToCraftBlocks
API.
This results in the craft block with a duplicated label.name one is highlighted and one is emphazised:
Is this intended?
I’m aware that I could format the blocks using the styling documented here: https://documentation.developer.craft.do/extensions/data-model/block/text but its way easier by just using markdown