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, { const nodes = parser.parse(input, {
startRule: 'fullParser', startRule: 'fullParser',
fnNameList: opts.fnNameList, fnNameList: opts.fnNameList,
nestLimit: opts.nestLimit nestLimit: opts.nestLimit,
}); });
return nodes; return nodes;
} }

View file

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