Lawtext core references / core/src/parser/std/rules/$paragraphItem
core/src/parser/std/rules/$paragraphItem
Variables
$autoParagraphItem
const$autoParagraphItem:WithErrorRule<ParagraphItem|__AutoParagraphItem>
Defined in: core/src/parser/std/rules/$paragraphItem.ts:512 (opens in a new tab)
$autoParagraphItemChildrenOuter
const$autoParagraphItemChildrenOuter:WithErrorRule<(ParagraphItem["children"][number] |__AutoParagraphItem)[]>
Defined in: core/src/parser/std/rules/$paragraphItem.ts:362 (opens in a new tab)
$noControlAnonymParagraph
const$noControlAnonymParagraph:WithErrorRule<Paragraph>
Defined in: core/src/parser/std/rules/$paragraphItem.ts:662 (opens in a new tab)
$requireControlParagraphItem
const$requireControlParagraphItem:WithErrorRule<ParagraphItem>
Defined in: core/src/parser/std/rules/$paragraphItem.ts:625 (opens in a new tab)
Functions
$paragraphItem()
$paragraphItem(
defautTag):WithErrorRule<ParagraphItem>
Defined in: core/src/parser/std/rules/$paragraphItem.ts:652 (opens in a new tab)
The parser rule for Paragraph, Item and subitem (ParagraphItem). Please see the source code for the detailed syntax, and the test code (opens in a new tab) for examples.
Parameters
defautTag
"Paragraph" | "Item" | "Subitem1" | "Subitem2" | "Subitem3" | "Subitem4" | "Subitem5" | "Subitem6" | "Subitem7" | "Subitem8" | "Subitem9" | "Subitem10"
Returns
isAutoParagraphItem()
isAutoParagraphItem(
el):el is __AutoParagraphItem
Defined in: core/src/parser/std/rules/$paragraphItem.ts:450 (opens in a new tab)
Parameters
el
string | EL
Returns
el is __AutoParagraphItem
isAutoParagraphItemSentence()
isAutoParagraphItemSentence(
el):el is __AutoParagraphItem
Defined in: core/src/parser/std/rules/$paragraphItem.ts:458 (opens in a new tab)
Parameters
el
string | EL
Returns
el is __AutoParagraphItem
isAutoParagraphItemTitle()
isAutoParagraphItemTitle(
el):el is __AutoParagraphItem
Defined in: core/src/parser/std/rules/$paragraphItem.ts:454 (opens in a new tab)
Parameters
el
string | EL
Returns
el is __AutoParagraphItem
paragraphItemFromAuto()
paragraphItemFromAuto(
defautTag,paragraphItem):ParagraphItem
Defined in: core/src/parser/std/rules/$paragraphItem.ts:461 (opens in a new tab)
Parameters
defautTag
"Paragraph" | "Item" | "Subitem1" | "Subitem2" | "Subitem3" | "Subitem4" | "Subitem5" | "Subitem6" | "Subitem7" | "Subitem8" | "Subitem9" | "Subitem10"
paragraphItem
ParagraphItem | __AutoParagraphItem
Returns
paragraphItemToLines()
paragraphItemToLines(
el,indentTexts,options?):Line[]
Defined in: core/src/parser/std/rules/$paragraphItem.ts:46 (opens in a new tab)
The renderer for Paragraph, Item and subitem (ParagraphItem). Please see the source code for the detailed syntax, and the test code (opens in a new tab) for examples.
Parameters
el
indentTexts
string[]
options?
ParagraphItemToLinesOptions
Returns
Line[]
References
default
Renames and re-exports $paragraphItem