Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

fix: Cannot use multiple underscore characters within inline code mark #298

Merged
merged 1 commit into from
Sep 30, 2020

Conversation

tommoor
Copy link
Member

@tommoor tommoor commented Sep 30, 2020

Due to the inline markdown nature of the editor we can't stop underlines from parsing entirely, but they can and should be ignored within an inline code mark.

closes #296

@@ -30,7 +30,7 @@ export default class Code extends Mark {

get schema() {
return {
excludes: "strong em link mark strikethrough",
excludes: "_",
Copy link
Member Author

Choose a reason for hiding this comment

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

Note: This is something of a coincidence – the _ character in a prosemirror node spec means "any mark", it does not mean a literal underscore.

@tommoor tommoor merged commit 2ae5b7a into develop Sep 30, 2020
@delete-merged-branch delete-merged-branch bot deleted the fix/issue-296 branch September 30, 2020 07:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Problem typing multiple underscores in identifiers
1 participant