Skip to content

Conversation

@FrancisMengx
Copy link
Contributor

Parsing block quote should be happen only for blockquote text or it should be parsed as default blockgroup

markdownString += createMarkdownBlockQuote(blockGroup, newLinePattern, listCounter);
break;
}
default:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although it logically works, but it can't pass lint check.

Also would you please add a test case, thanks

if (blockGroup.tagName == 'blockquote') {
markdownString += createMarkdownBlockQuote(blockGroup, newLinePattern, listCounter);
} else {
markdownString += createDefaultMarkdownString(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just use existing function createMarkdownBlockGroup recursively?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants