chore: update mfm-js version (#9844)
This resolves #9757. Co-authored-by: naskya <m@naskya.net> Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9844 Co-authored-by: naskya <naskya@noreply.codeberg.org> Co-committed-by: naskya <naskya@noreply.codeberg.org>
This commit is contained in:
parent
8f7c136f48
commit
daf07089b4
@ -52,9 +52,7 @@ export default defineComponent({
|
|||||||
|
|
||||||
const isPlain = this.plain;
|
const isPlain = this.plain;
|
||||||
|
|
||||||
const ast = (isPlain ? mfm.parseSimple : mfm.parse)(this.text, {
|
const ast = (isPlain ? mfm.parseSimple : mfm.parse)(this.text);
|
||||||
fnNameList: MFM_TAGS,
|
|
||||||
});
|
|
||||||
|
|
||||||
const validTime = (t: string | null | undefined) => {
|
const validTime = (t: string | null | undefined) => {
|
||||||
if (t == null) return null;
|
if (t == null) return null;
|
||||||
@ -467,9 +465,6 @@ export default defineComponent({
|
|||||||
const sentinel = "#";
|
const sentinel = "#";
|
||||||
let ast2 = (isPlain ? mfm.parseSimple : mfm.parse)(
|
let ast2 = (isPlain ? mfm.parseSimple : mfm.parse)(
|
||||||
token.props.content.slice(0, -6) + sentinel,
|
token.props.content.slice(0, -6) + sentinel,
|
||||||
{
|
|
||||||
fnNameList: MFM_TAGS,
|
|
||||||
},
|
|
||||||
);
|
);
|
||||||
if (
|
if (
|
||||||
ast2[ast2.length - 1].type === "text" &&
|
ast2[ast2.length - 1].type === "text" &&
|
||||||
|
Loading…
Reference in New Issue
Block a user