[MFM] Better inline code parse
This commit is contained in:
parent
b7b36973f7
commit
b2f8003602
2 changed files with 22 additions and 6 deletions
|
@ -119,7 +119,7 @@ const mfm = P.createLanguage({
|
|||
|
||||
//#region Inline code
|
||||
inlineCode: r =>
|
||||
P.regexp(/`(.+?)`/, 1)
|
||||
P.regexp(/`([^´\n]+?)`/, 1)
|
||||
.map(x => makeNode('inlineCode', { code: x })),
|
||||
//#endregion
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue