This commit is contained in:
marihachi 2022-01-09 22:48:52 +09:00
parent 4fee3f5fb6
commit f1d942be62
3 changed files with 24 additions and 24 deletions

View file

@ -12,7 +12,7 @@ export function parse(input: string, opts: Partial<{ fnNameList: string[]; nestL
const nodes = parser.parse(input, {
startRule: 'fullParser',
fnNameList: opts.fnNameList,
nestLimit: opts.nestLimit
nestLimit: opts.nestLimit,
});
return nodes;
}

View file

@ -3,14 +3,14 @@ export {
parsePlain,
toString,
inspect,
extract
extract,
} from './api';
export {
NodeType,
MfmNode,
MfmBlock,
MfmInline
MfmInline,
} from './node';
export {
@ -35,7 +35,7 @@ export {
MfmUrl,
MfmLink,
MfmFn,
MfmText
MfmText,
} from './node';
export {
@ -60,5 +60,5 @@ export {
N_URL,
LINK,
FN,
TEXT
TEXT,
} from './node';