laif-ds
Version:
Design System di Laif con componenti React basati su principi di Atomic Design
35 lines (34 loc) • 1 kB
JavaScript
"use client";
import { factorySpace as l } from "../../../micromark-factory-space/index.js";
import { blankLine as a } from "../../../micromark-core-commonmark/lib/blank-line.js";
import { content as e } from "../../../micromark-core-commonmark/lib/content.js";
const d = {
tokenize: m
};
function m(n) {
const o = this, i = n.attempt(
// Try to parse a blank line.
a,
u,
// Try to parse initial flow (essentially, only code).
n.attempt(this.parser.constructs.flowInitial, r, l(n, n.attempt(this.parser.constructs.flow, r, n.attempt(e, r)), "linePrefix"))
);
return i;
function u(t) {
if (t === null) {
n.consume(t);
return;
}
return n.enter("lineEndingBlank"), n.consume(t), n.exit("lineEndingBlank"), o.currentConstruct = void 0, i;
}
function r(t) {
if (t === null) {
n.consume(t);
return;
}
return n.enter("lineEnding"), n.consume(t), n.exit("lineEnding"), o.currentConstruct = void 0, i;
}
}
export {
d as flow
};