Update MkMisskeyFlavoredMarkdown.ts

This commit is contained in:
かっこかり 2023-10-27 14:43:47 +09:00 committed by GitHub
parent 0db3308944
commit 63d5a8acae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -37,9 +37,9 @@ export default function(props: {
isNote?: boolean;
emojiUrls?: string[];
rootScale?: number;
disableNyaize: boolean | 'account';
nyaize: boolean | 'account';
} = {
disableNyaize: false,
nyaize: false,
}) {
const isNote = props.isNote !== undefined ? props.isNote : true;
@ -63,7 +63,7 @@ export default function(props: {
switch (token.type) {
case 'text': {
let text = token.props.text.replace(/(\r\n|\n|\r)/g, '\n');
if (!disableNyaize && (props.enableNyaize === true || (props.enableNyaize === 'account' && props.author?.isCat))) {
if (!disableNyaize && (props.nyaize === true || (props.nyaize === 'account' && props.author?.isCat))) {
text = nyaize(text);
}