-
Notifications
You must be signed in to change notification settings - Fork 16
Description
I tried using the package in my component which uses React Quill. I am converting the HTML to markdown in my code to be passed down to this package. Generate markdown seems to be correct..
Among the formats /toolbar that i am using, only the blockquote for single line doesn't work. Rest of things work nicely!
function parseBlockquote(element: marked.Tokens.Blockquote): KnownBlock[] { return element.tokens .filter( (child): child is marked.Tokens.Paragraph => child.type === 'paragraph' ) .flatMap(p => parseParagraph(p).map(block => { if (isSectionBlock(block) && block.text?.text) { block.text.text = block.text.text .split('\n') .map(line => '> ' + line) .join('\n'); } return block; }) ); }
this fix works when i tried to fork the repo but then some other formats like bold/italic/strike fails..
Is it possible to fix the blockquote format in your repo?