mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-16 03:40:37 +08:00
Update footnote regex to handle footnotes with spaces
This commit is contained in:
+1
-1
@@ -53,7 +53,7 @@ const footnoteReferenceMarkedExtension = {
|
||||
renderer: (token: Tokens.Generic): string =>
|
||||
`<sup class="txt-tiny footnote-ref" id="${referencePrefix}:${token.text}"><a href="#${footnotePrefix}:${token.text}">[${token.text}]</a></sup>`,
|
||||
};
|
||||
const footnoteMatch = /^\[\^([^\]]+)\]:\s([\S]*)/;
|
||||
const footnoteMatch = /^\[\^([^\]]+)\]:\s([\S].*)/;
|
||||
const footnoteMarkedExtension = {
|
||||
name: "footnote",
|
||||
level: "block",
|
||||
|
||||
Reference in New Issue
Block a user