You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: