highmark-markdown 1.0.173 → 1.0.174
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/example.js +14061 -13787
- package/lib/example/importer.js +5 -5
- package/lib/example/view/div/container/markdown.js +3 -3
- package/lib/example/view/div/preview.js +5 -1
- package/lib/example/view/textarea/parseTree/{markdown/outer.js → html.js} +17 -17
- package/lib/example/view/textarea/parseTree/markdown.js +49 -2
- package/lib/example/view/textarea/plainText.js +7 -2
- package/lib/example/view/xmp.js +7 -2
- package/lib/example/view.js +67 -104
- package/lib/index/match.js +6 -6
- package/lib/index.js +27 -15
- package/lib/map/className.js +60 -0
- package/lib/map/node/html.js +85 -0
- package/lib/map/node/markdown.js +73 -0
- package/lib/map/tagName.js +60 -0
- package/lib/markdown/bnf.js +2 -2
- package/lib/markdown/parser.js +10 -9
- package/lib/markdownStyle/entries.js +3 -3
- package/lib/mixins/node.js +24 -23
- package/lib/node/html/anchor.js +55 -11
- package/lib/node/html/blockLine.js +75 -9
- package/lib/node/html/division.js +135 -0
- package/lib/node/html/error.js +195 -0
- package/lib/node/html/{blockListingEnd.js → footnote.js} +20 -14
- package/lib/node/html/heading/index.js +128 -0
- package/lib/node/html/heading/primary.js +129 -0
- package/lib/node/{markdown/directive.js → html/heading/quaternary.js} +21 -21
- package/lib/node/html/heading/secondary.js +129 -0
- package/lib/node/html/heading/tertiary.js +129 -0
- package/lib/node/html/image.js +214 -0
- package/lib/node/html/indexList.js +128 -0
- package/lib/node/html/item/contents.js +128 -0
- package/lib/node/html/item/footnotes.js +128 -0
- package/lib/node/{markdown/indexItem.js → html/item/index.js} +36 -15
- package/lib/node/html/item/ordered.js +17 -2
- package/lib/node/html/item/unordered.js +128 -0
- package/lib/node/html/line.js +174 -0
- package/lib/node/html/{contentsLink.js → link/contents.js} +19 -4
- package/lib/node/html/link/email.js +229 -0
- package/lib/node/html/link/footnote.js +137 -0
- package/lib/node/html/link/hyper.js +229 -0
- package/lib/node/html/link/index.js +202 -0
- package/lib/node/html/list/contents.js +128 -0
- package/lib/node/html/list/footnotes.js +144 -0
- package/lib/node/html/list/ordered.js +128 -0
- package/lib/node/html/list/unordered.js +128 -0
- package/lib/node/html/{blockListing.js → listing/block.js} +18 -9
- package/lib/node/html/listing/inline.js +189 -0
- package/lib/node/html/pageNumber.js +170 -0
- package/lib/node/html/{className.js → paragraph.js} +26 -18
- package/lib/node/{markdown/nonsense.js → html/table.js} +22 -15
- package/lib/node/{markdown/blockListingEnd.js → html/tableBody.js} +22 -15
- package/lib/node/html/tableBodyCell.js +128 -0
- package/lib/node/html/tableBodyRow.js +128 -0
- package/lib/node/html/{blockListingStart.js → tableHead.js} +26 -18
- package/lib/node/html/tableHeadCell.js +128 -0
- package/lib/node/html/tableHeadRow.js +128 -0
- package/lib/node/html/text/block.js +128 -0
- package/lib/node/html/text/emphasised.js +128 -0
- package/lib/node/html/text/inline.js +196 -0
- package/lib/node/html/text/plain.js +128 -0
- package/lib/node/html/text/strong.js +128 -0
- package/lib/node/html/text/stronglyEmphasised.js +212 -0
- package/lib/node/html/text.js +141 -0
- package/lib/node/html/topmost.js +57 -10
- package/lib/node/html.js +130 -40
- package/lib/node/markdown/anchor.js +6 -22
- package/lib/node/markdown/{table.js → blockEnd.js} +10 -10
- package/lib/node/markdown/blockListing.js +4 -31
- package/lib/node/markdown/{blockListingStart.js → blockStart.js} +10 -24
- package/lib/node/markdown/className.js +2 -2
- package/lib/node/markdown/contentsItem.js +4 -4
- package/lib/node/markdown/contentsList.js +2 -10
- package/lib/node/markdown/directive/embee.js +13 -13
- package/lib/node/markdown/directive/include.js +13 -13
- package/lib/node/markdown/directive/pageNumber.js +13 -29
- package/lib/node/markdown/division.js +205 -254
- package/lib/node/markdown/emailLink.js +36 -98
- package/lib/node/markdown/emphasisedText.js +3 -54
- package/lib/node/markdown/error.js +9 -53
- package/lib/node/markdown/footnote.js +1 -15
- package/lib/node/markdown/footnoteLink.js +9 -32
- package/lib/node/markdown/footnotesList.js +1 -16
- package/lib/node/markdown/heading/primary.js +1 -2
- package/lib/node/markdown/heading/quaternary.js +1 -2
- package/lib/node/markdown/heading/secondary.js +1 -2
- package/lib/node/markdown/heading/tertiary.js +1 -2
- package/lib/node/markdown/heading.js +1 -13
- package/lib/node/markdown/hyperlink.js +44 -108
- package/lib/node/markdown/image.js +2 -63
- package/lib/node/markdown/indexLink.js +13 -87
- package/lib/node/markdown/indexList.js +2 -10
- package/lib/node/markdown/inlineListing.js +22 -56
- package/lib/node/markdown/inlineText.js +3 -21
- package/lib/node/markdown/item/ordered.js +6 -6
- package/lib/node/markdown/line.js +1 -74
- package/lib/node/markdown/path.js +7 -7
- package/lib/node/markdown/strongText.js +3 -54
- package/lib/node/markdown/stronglyEmphasisedText.js +3 -78
- package/lib/node/markdown/{tableCellDivider.js → text/block.js} +12 -12
- package/lib/node/markdown/{tableBody.js → text/plain.js} +12 -12
- package/lib/node/markdown/text.js +154 -0
- package/lib/node/markdown/topmost.js +191 -0
- package/lib/node/markdown.js +6 -229
- package/lib/queries.js +4 -45
- package/lib/ruleNames.js +34 -21
- package/lib/style/selector.js +11 -7
- package/lib/transform/contentsItem.js +134 -0
- package/lib/transform/contentsLink.js +115 -0
- package/lib/transform/contentsList.js +194 -0
- package/lib/{replacement/subDivision.js → transform/division.js} +33 -38
- package/lib/{replacement → transform}/embedDirective.js +14 -19
- package/lib/{replacement → transform}/footnote.js +18 -23
- package/lib/transform/footnotesItem.js +123 -0
- package/lib/transform/footnotesList.js +173 -0
- package/lib/{replacement → transform}/includeDirective.js +13 -18
- package/lib/transform/index.js +166 -0
- package/lib/{replacement → transform}/indexAnchor.js +13 -13
- package/lib/{replacement → transform}/indexHeading.js +13 -18
- package/lib/{replacement → transform}/indexItem.js +13 -18
- package/lib/transform/indexList.js +121 -0
- package/lib/{replacement → transform}/line.js +13 -18
- package/lib/{replacement → transform}/subDivision/contentsDirective.js +14 -14
- package/lib/transform/subDivision/embedDirectives.js +147 -0
- package/lib/{replacement → transform}/subDivision/footnote.js +14 -14
- package/lib/{replacement → transform}/subDivision/footnotesDirective.js +14 -14
- package/lib/transform/subDivision/includeDirectives.js +142 -0
- package/lib/{replacement → transform}/subDivision/indexDirective.js +14 -14
- package/lib/{replacement → transform}/subDivision/pageNumberDirective.js +14 -14
- package/lib/utilities/content.js +1 -61
- package/lib/utilities/entities.js +17 -0
- package/lib/utilities/entries.js +6 -6
- package/lib/utilities/html.js +67 -9
- package/lib/utilities/markdown.js +45 -0
- package/lib/utilities/parser.js +8 -2
- package/lib/utilities/query.js +2 -22
- package/package.json +2 -2
- package/src/example/importer.js +2 -4
- package/src/example/view/div/container/markdown.js +2 -2
- package/src/example/view/div/preview.js +6 -0
- package/src/example/view/textarea/parseTree/html.js +28 -0
- package/src/example/view/textarea/parseTree/markdown.js +19 -1
- package/src/example/view/textarea/plainText.js +9 -1
- package/src/example/view/xmp.js +9 -1
- package/src/example/view.js +84 -91
- package/src/index/match.js +6 -6
- package/src/index.js +6 -3
- package/src/map/className.js +16 -0
- package/src/map/node/html.js +136 -0
- package/src/map/node/markdown.js +125 -0
- package/src/map/tagName.js +16 -0
- package/src/markdown/bnf.js +85 -64
- package/src/markdown/parser.js +3 -1
- package/src/markdownStyle/entries.js +3 -3
- package/src/mixins/node.js +29 -34
- package/src/node/html/anchor.js +26 -5
- package/src/node/html/blockLine.js +58 -7
- package/src/node/html/division.js +15 -0
- package/src/node/html/error.js +64 -0
- package/src/node/html/footnote.js +17 -0
- package/src/node/html/heading/index.js +13 -0
- package/src/node/html/heading/primary.js +15 -0
- package/src/node/html/heading/quaternary.js +15 -0
- package/src/node/html/heading/secondary.js +15 -0
- package/src/node/html/heading/tertiary.js +15 -0
- package/src/node/html/image.js +107 -0
- package/src/node/html/indexList.js +13 -0
- package/src/node/html/item/contents.js +13 -0
- package/src/node/html/item/footnotes.js +13 -0
- package/src/node/{markdown/indexItem.js → html/item/index.js} +9 -3
- package/src/node/html/item/ordered.js +5 -1
- package/src/node/html/item/unordered.js +13 -0
- package/src/node/html/line.js +64 -0
- package/src/node/html/{contentsLink.js → link/contents.js} +7 -3
- package/src/node/html/link/email.js +96 -0
- package/src/node/html/link/footnote.js +33 -0
- package/src/node/html/link/hyper.js +96 -0
- package/src/node/html/link/index.js +72 -0
- package/src/node/html/list/contents.js +13 -0
- package/src/node/html/list/footnotes.js +27 -0
- package/src/node/html/list/ordered.js +13 -0
- package/src/node/html/list/unordered.js +13 -0
- package/src/node/html/{blockListing.js → listing/block.js} +5 -8
- package/src/node/html/listing/inline.js +61 -0
- package/src/node/html/pageNumber.js +46 -0
- package/src/node/html/paragraph.js +13 -0
- package/src/node/html/table.js +13 -0
- package/src/node/html/tableBody.js +13 -0
- package/src/node/html/tableBodyCell.js +13 -0
- package/src/node/html/tableBodyRow.js +13 -0
- package/src/node/html/tableHead.js +13 -0
- package/src/node/html/tableHeadCell.js +13 -0
- package/src/node/html/tableHeadRow.js +13 -0
- package/src/node/html/text/block.js +13 -0
- package/src/node/html/text/emphasised.js +13 -0
- package/src/node/html/text/inline.js +57 -0
- package/src/node/html/text/plain.js +13 -0
- package/src/node/html/text/strong.js +13 -0
- package/src/node/html/text/stronglyEmphasised.js +98 -0
- package/src/node/html/text.js +34 -0
- package/src/node/html/topmost.js +57 -8
- package/src/node/html.js +136 -53
- package/src/node/markdown/anchor.js +5 -25
- package/src/node/markdown/{table.js → blockEnd.js} +2 -2
- package/src/node/markdown/blockListing.js +4 -10
- package/src/node/markdown/{blockListingStart.js → blockStart.js} +4 -6
- package/src/node/markdown/className.js +2 -2
- package/src/node/markdown/contentsItem.js +4 -4
- package/src/node/markdown/contentsList.js +0 -6
- package/src/node/markdown/directive/embee.js +10 -10
- package/src/node/markdown/directive/include.js +10 -10
- package/src/node/markdown/directive/pageNumber.js +10 -29
- package/src/node/markdown/division.js +203 -260
- package/src/node/markdown/emailLink.js +41 -87
- package/src/node/markdown/emphasisedText.js +1 -40
- package/src/node/markdown/error.js +9 -40
- package/src/node/markdown/footnote.js +0 -12
- package/src/node/markdown/footnoteLink.js +8 -31
- package/src/node/markdown/footnotesList.js +0 -13
- package/src/node/markdown/heading/primary.js +0 -2
- package/src/node/markdown/heading/quaternary.js +0 -2
- package/src/node/markdown/heading/secondary.js +0 -2
- package/src/node/markdown/heading/tertiary.js +0 -2
- package/src/node/markdown/heading.js +0 -14
- package/src/node/markdown/hyperlink.js +41 -91
- package/src/node/markdown/image.js +1 -82
- package/src/node/markdown/indexLink.js +10 -69
- package/src/node/markdown/indexList.js +0 -6
- package/src/node/markdown/inlineListing.js +20 -40
- package/src/node/markdown/inlineText.js +1 -21
- package/src/node/markdown/item/ordered.js +3 -3
- package/src/node/markdown/line.js +0 -61
- package/src/node/markdown/path.js +5 -5
- package/src/node/markdown/strongText.js +1 -40
- package/src/node/markdown/stronglyEmphasisedText.js +1 -74
- package/src/node/markdown/text/block.js +7 -0
- package/src/node/markdown/text/plain.js +7 -0
- package/src/node/markdown/text.js +80 -0
- package/src/node/markdown/topmost.js +91 -0
- package/src/node/markdown.js +1 -200
- package/src/queries.js +6 -86
- package/src/ruleNames.js +16 -12
- package/src/style/selector.js +16 -10
- package/src/transform/contentsItem.js +55 -0
- package/src/{replacement → transform}/contentsLink.js +10 -9
- package/src/{replacement → transform}/contentsList.js +26 -26
- package/src/transform/division.js +41 -0
- package/src/{replacement → transform}/embedDirective.js +4 -4
- package/src/{replacement → transform}/footnote.js +7 -7
- package/src/transform/footnotesItem.js +25 -0
- package/src/transform/footnotesList.js +79 -0
- package/src/{replacement → transform}/includeDirective.js +4 -4
- package/src/transform/index.js +90 -0
- package/src/{replacement → transform}/indexAnchor.js +5 -4
- package/src/{replacement → transform}/indexHeading.js +4 -4
- package/src/{replacement → transform}/indexItem.js +4 -4
- package/src/transform/indexList.js +33 -0
- package/src/{replacement → transform}/line.js +4 -4
- package/src/transform/subDivision/contentsDirective.js +20 -0
- package/src/transform/subDivision/embedDirectives.js +52 -0
- package/src/{replacement → transform}/subDivision/footnote.js +5 -5
- package/src/transform/subDivision/footnotesDirective.js +20 -0
- package/src/transform/subDivision/includeDirectives.js +48 -0
- package/src/transform/subDivision/indexDirective.js +20 -0
- package/src/transform/subDivision/pageNumberDirective.js +20 -0
- package/src/utilities/content.js +0 -95
- package/src/utilities/entities.js +11 -0
- package/src/utilities/entries.js +3 -3
- package/src/utilities/html.js +69 -6
- package/src/utilities/markdown.js +32 -0
- package/src/utilities/parser.js +3 -2
- package/src/utilities/query.js +8 -28
- package/lib/classFromOuterNode.js +0 -30
- package/lib/elementMap.js +0 -218
- package/lib/example/view/textarea/parseTree/markdown/inner.js +0 -179
- package/lib/mixins/content.js +0 -21
- package/lib/mixins/element.js +0 -32
- package/lib/node/html/comma.js +0 -127
- package/lib/node/html/directive/pageNumber.js +0 -178
- package/lib/node/markdown/blockLine.js +0 -207
- package/lib/node/markdown/comma.js +0 -123
- package/lib/node/markdown/directive/contents.js +0 -107
- package/lib/node/markdown/directive/footnotes.js +0 -107
- package/lib/node/markdown/directive/ignore.js +0 -107
- package/lib/node/markdown/directive/index.js +0 -107
- package/lib/node/markdown/directives.js +0 -125
- package/lib/node/markdown/emptyTableCell.js +0 -122
- package/lib/node/markdown/endOfLine.js +0 -151
- package/lib/node/markdown/indexHeading.js +0 -107
- package/lib/node/markdown/item/unordered.js +0 -107
- package/lib/node/markdown/item.js +0 -107
- package/lib/node/markdown/orderedList.js +0 -107
- package/lib/node/markdown/plainText.js +0 -115
- package/lib/node/markdown/subDivision.js +0 -161
- package/lib/node/markdown/tableBodyCell.js +0 -128
- package/lib/node/markdown/tableBodyRow.js +0 -107
- package/lib/node/markdown/tableCell.js +0 -118
- package/lib/node/markdown/tableDivider.js +0 -107
- package/lib/node/markdown/tableHead.js +0 -107
- package/lib/node/markdown/tableHeadCell.js +0 -128
- package/lib/node/markdown/tableHeadRow.js +0 -107
- package/lib/node/markdown/unorderedList.js +0 -107
- package/lib/node/markdown/verticalSpace.js +0 -151
- package/lib/nodeMap.js +0 -98
- package/lib/replacement/contentsItem.js +0 -134
- package/lib/replacement/contentsLink.js +0 -115
- package/lib/replacement/contentsList.js +0 -194
- package/lib/replacement/footnotesItem.js +0 -123
- package/lib/replacement/footnotesList.js +0 -173
- package/lib/replacement/index.js +0 -166
- package/lib/replacement/indexList.js +0 -121
- package/lib/replacement/subDivision/embedDirectives.js +0 -143
- package/lib/replacement/subDivision/includeDirectives.js +0 -175
- package/lib/replacement.js +0 -262
- package/lib/ruleNameToClassMap.js +0 -44
- package/lib/utilities/childNodes.js +0 -127
- package/lib/utilities/processing.js +0 -106
- package/lib/utilities/replacement.js +0 -195
- package/src/classFromOuterNode.js +0 -20
- package/src/elementMap.js +0 -322
- package/src/example/view/textarea/parseTree/markdown/inner.js +0 -36
- package/src/example/view/textarea/parseTree/markdown/outer.js +0 -27
- package/src/mixins/content.js +0 -16
- package/src/mixins/element.js +0 -29
- package/src/node/html/blockListingEnd.js +0 -11
- package/src/node/html/blockListingStart.js +0 -11
- package/src/node/html/className.js +0 -11
- package/src/node/html/comma.js +0 -18
- package/src/node/html/directive/pageNumber.js +0 -55
- package/src/node/markdown/blockLine.js +0 -90
- package/src/node/markdown/blockListingEnd.js +0 -9
- package/src/node/markdown/comma.js +0 -23
- package/src/node/markdown/directive/contents.js +0 -7
- package/src/node/markdown/directive/footnotes.js +0 -7
- package/src/node/markdown/directive/ignore.js +0 -7
- package/src/node/markdown/directive/index.js +0 -7
- package/src/node/markdown/directive.js +0 -15
- package/src/node/markdown/directives.js +0 -25
- package/src/node/markdown/emptyTableCell.js +0 -19
- package/src/node/markdown/endOfLine.js +0 -39
- package/src/node/markdown/indexHeading.js +0 -7
- package/src/node/markdown/item/unordered.js +0 -7
- package/src/node/markdown/item.js +0 -7
- package/src/node/markdown/nonsense.js +0 -9
- package/src/node/markdown/orderedList.js +0 -7
- package/src/node/markdown/plainText.js +0 -13
- package/src/node/markdown/subDivision.js +0 -64
- package/src/node/markdown/tableBody.js +0 -7
- package/src/node/markdown/tableBodyCell.js +0 -29
- package/src/node/markdown/tableBodyRow.js +0 -7
- package/src/node/markdown/tableCell.js +0 -19
- package/src/node/markdown/tableCellDivider.js +0 -7
- package/src/node/markdown/tableDivider.js +0 -7
- package/src/node/markdown/tableHead.js +0 -7
- package/src/node/markdown/tableHeadCell.js +0 -29
- package/src/node/markdown/tableHeadRow.js +0 -7
- package/src/node/markdown/unorderedList.js +0 -7
- package/src/node/markdown/verticalSpace.js +0 -39
- package/src/nodeMap.js +0 -200
- package/src/replacement/contentsItem.js +0 -54
- package/src/replacement/footnotesItem.js +0 -24
- package/src/replacement/footnotesList.js +0 -78
- package/src/replacement/index.js +0 -89
- package/src/replacement/indexList.js +0 -32
- package/src/replacement/subDivision/contentsDirective.js +0 -20
- package/src/replacement/subDivision/embedDirectives.js +0 -52
- package/src/replacement/subDivision/footnotesDirective.js +0 -20
- package/src/replacement/subDivision/includeDirectives.js +0 -58
- package/src/replacement/subDivision/indexDirective.js +0 -20
- package/src/replacement/subDivision/pageNumberDirective.js +0 -20
- package/src/replacement/subDivision.js +0 -41
- package/src/replacement.js +0 -185
- package/src/ruleNameToClassMap.js +0 -38
- package/src/utilities/childNodes.js +0 -178
- package/src/utilities/processing.js +0 -122
- package/src/utilities/replacement.js +0 -169
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import HHTMLNode from "../../node/html";
|
|
4
|
-
|
|
5
|
-
export default class BlockListingHStartHTMLNode extends HHTMLNode {
|
|
6
|
-
className(context) { return this.outerNode.className(context); }
|
|
7
|
-
|
|
8
|
-
static fromNothing() { return HHTMLNode.fromNothing(BlockListingHStartHTMLNode); }
|
|
9
|
-
|
|
10
|
-
static fromOuterNode(outerNode) { return HHTMLNode.fromOuterNode(BlockListingHStartHTMLNode, outerNode); }
|
|
11
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import HTMLNode from "../../node/html";
|
|
4
|
-
|
|
5
|
-
export default class ClassNameHTMLNode extends HTMLNode {
|
|
6
|
-
className(context) { return this.outerNode.className(context); }
|
|
7
|
-
|
|
8
|
-
static fromNothing() { return HTMLNode.fromNothing(ClassNameHTMLNode); }
|
|
9
|
-
|
|
10
|
-
static fromOuterNode(outerNode) { return HTMLNode.fromOuterNode(ClassNameHTMLNode, outerNode); }
|
|
11
|
-
}
|
package/src/node/html/comma.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import HTMLNode from "../../node/html";
|
|
4
|
-
|
|
5
|
-
export default class CommaHTMLNode extends HTMLNode {
|
|
6
|
-
content(context) { return this.outerNode.content(context); }
|
|
7
|
-
|
|
8
|
-
asHTML(indent, context) {
|
|
9
|
-
const content = this.content(context),
|
|
10
|
-
html = content; ///
|
|
11
|
-
|
|
12
|
-
return html;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
static fromNothing() { return HTMLNode.fromNothing(CommaHTMLNode); }
|
|
16
|
-
|
|
17
|
-
static fromOuterNode(outerNode) { return HTMLNode.fromOuterNode(CommaHTMLNode, outerNode); }
|
|
18
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import HTMLNode from "../../html";
|
|
4
|
-
|
|
5
|
-
export default class PageNumberDirectiveHTMLNode extends HTMLNode {
|
|
6
|
-
getRuleName() {} ///
|
|
7
|
-
|
|
8
|
-
tagName(context) {} ///
|
|
9
|
-
|
|
10
|
-
className(context) {} ///
|
|
11
|
-
|
|
12
|
-
closingTag(context) {} ///
|
|
13
|
-
|
|
14
|
-
startingTag(context) {} ///
|
|
15
|
-
|
|
16
|
-
selfClosingTag(context) {} ///
|
|
17
|
-
|
|
18
|
-
attributeName(context) {} ///
|
|
19
|
-
|
|
20
|
-
attributeValue(context) {} ///
|
|
21
|
-
|
|
22
|
-
adjustIndent(indent) {} ///
|
|
23
|
-
|
|
24
|
-
getPageNumber() { return this.outerNode.getPageNumber(); }
|
|
25
|
-
|
|
26
|
-
content(context) {
|
|
27
|
-
const pageNumber = this.getPageNumber(),
|
|
28
|
-
content = pageNumber;
|
|
29
|
-
|
|
30
|
-
return content;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
asHTML(indent, context) {
|
|
34
|
-
indent = this.adjustIndent(indent);
|
|
35
|
-
|
|
36
|
-
const childNodesHTML = this.childNodesAsHTML(indent, context),
|
|
37
|
-
startingTag = this.startingTag(context),
|
|
38
|
-
closingTag = this.closingTag(context),
|
|
39
|
-
html = `${indent}${startingTag}${childNodesHTML}${closingTag}
|
|
40
|
-
`;
|
|
41
|
-
|
|
42
|
-
return html;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
childNodesAsHTML(indent, context) {
|
|
46
|
-
const content = this.content(context),
|
|
47
|
-
childNodesHTML = content; ///
|
|
48
|
-
|
|
49
|
-
return childNodesHTML;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
static fromNothing() { return HTMLNode.fromNothing(PageNumberDirectiveHTMLNode); }
|
|
53
|
-
|
|
54
|
-
static fromOuterNode(outerNode) { return HTMLNode.fromOuterNode(PageNumberDirectiveHTMLNode, outerNode); }
|
|
55
|
-
}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import MarkdownNode from "../../node/markdown";
|
|
4
|
-
|
|
5
|
-
import { replaceEntities } from "../../utilities/html";
|
|
6
|
-
import { contentFromNode } from "../../utilities/content";
|
|
7
|
-
|
|
8
|
-
export default class BlockLineMarkdownNode extends MarkdownNode {
|
|
9
|
-
lines(context) {
|
|
10
|
-
const { charactersPerLine } = context,
|
|
11
|
-
plainText = this.asPlainText(context),
|
|
12
|
-
plainTextLength = plainText.length,
|
|
13
|
-
characters = plainTextLength, ///
|
|
14
|
-
lines = (characters / charactersPerLine) + 1;
|
|
15
|
-
|
|
16
|
-
return lines;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
content(context) {
|
|
20
|
-
let content;
|
|
21
|
-
|
|
22
|
-
const { tokens } = context,
|
|
23
|
-
node = this; ///
|
|
24
|
-
|
|
25
|
-
content = contentFromNode(node, context);
|
|
26
|
-
|
|
27
|
-
const firstSignificantTokenIndex = node.getFirstSignificantTokenIndex(tokens),
|
|
28
|
-
previousTokenIndex = firstSignificantTokenIndex - 1,
|
|
29
|
-
previousToken = tokens[previousTokenIndex],
|
|
30
|
-
previousTokenWhitespaceToken = previousToken.isWhitespaceToken();
|
|
31
|
-
|
|
32
|
-
if (previousTokenWhitespaceToken) {
|
|
33
|
-
const whitespaceToken = previousToken, ///
|
|
34
|
-
whitespaceTokenContent = whitespaceToken.getContent();
|
|
35
|
-
|
|
36
|
-
content = `${whitespaceTokenContent}${content}`;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
const childNodesHTML = content; ///
|
|
40
|
-
|
|
41
|
-
return childNodesHTML;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
mount(parentDOMElement, siblingDOMElement, context) {
|
|
45
|
-
this.domElement = this.createDOMElement(context);
|
|
46
|
-
|
|
47
|
-
parentDOMElement.insertBefore(this.domElement, siblingDOMElement);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
unmount(parentDOMElement, context) {
|
|
51
|
-
if (this.domElement !== null) {
|
|
52
|
-
parentDOMElement.removeChild(this.domElement);
|
|
53
|
-
|
|
54
|
-
this.domElement = null;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
createDOMElement(context) {
|
|
59
|
-
let domElement;
|
|
60
|
-
|
|
61
|
-
let content = this.content(context);
|
|
62
|
-
|
|
63
|
-
content = replaceEntities(content); ///
|
|
64
|
-
|
|
65
|
-
const textNode = document.createTextNode(content);
|
|
66
|
-
|
|
67
|
-
domElement = super.createDOMElement(context)
|
|
68
|
-
|
|
69
|
-
const parentDOMElement = domElement; ///
|
|
70
|
-
|
|
71
|
-
domElement = textNode; ///
|
|
72
|
-
|
|
73
|
-
parentDOMElement.appendChild(domElement);
|
|
74
|
-
|
|
75
|
-
domElement = parentDOMElement; ///
|
|
76
|
-
|
|
77
|
-
return domElement;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
childNodesAsPlainText(context) {
|
|
81
|
-
const content = this.content(context),
|
|
82
|
-
childNodesPlainText = content; ///
|
|
83
|
-
|
|
84
|
-
return childNodesPlainText;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
static lines = 2;
|
|
88
|
-
|
|
89
|
-
static fromRuleNameChildNodesAndOpacity(ruleName, childNodes, opacity) { return MarkdownNode.fromRuleNameChildNodesAndOpacity(BlockLineMarkdownNode, ruleName, childNodes, opacity); }
|
|
90
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import MarkdownNode from "../../node/markdown";
|
|
4
|
-
|
|
5
|
-
export default class BlockListingEndMarkdownNode extends MarkdownNode {
|
|
6
|
-
static lines = 2;
|
|
7
|
-
|
|
8
|
-
static fromRuleNameChildNodesAndOpacity(ruleName, childNodes, opacity) { return MarkdownNode.fromRuleNameChildNodesAndOpacity(BlockListingEndMarkdownNode, ruleName, childNodes, opacity); }
|
|
9
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import MarkdownNode from "../../node/markdown";
|
|
4
|
-
|
|
5
|
-
import { COMMA } from "../../constants";
|
|
6
|
-
|
|
7
|
-
export default class CommaMarkdownNode extends MarkdownNode {
|
|
8
|
-
createDOMElement(context) {
|
|
9
|
-
const content = this.content(context),
|
|
10
|
-
textNode = document.createTextNode(content),
|
|
11
|
-
domElement = textNode; ///
|
|
12
|
-
|
|
13
|
-
return domElement;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
content(context) {
|
|
17
|
-
const content = COMMA; ///
|
|
18
|
-
|
|
19
|
-
return content;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
static fromRuleNameChildNodesAndOpacity(ruleName, childNodes, opacity) { return MarkdownNode.fromRuleNameChildNodesAndOpacity(CommaMarkdownNode, ruleName, childNodes, opacity); }
|
|
23
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import DirectiveMarkdownNode from "../../../node/markdown/directive";
|
|
4
|
-
|
|
5
|
-
export default class ContentsDirectiveMarkdownNode extends DirectiveMarkdownNode {
|
|
6
|
-
static fromRuleNameChildNodesAndOpacity(ruleName, childNodes, opacity) { return DirectiveMarkdownNode.fromRuleNameChildNodesAndOpacity(ContentsDirectiveMarkdownNode, ruleName, childNodes, opacity); }
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import DirectiveMarkdownNode from "../../../node/markdown/directive";
|
|
4
|
-
|
|
5
|
-
export default class FootnotesDirectiveMarkdownNode extends DirectiveMarkdownNode {
|
|
6
|
-
static fromRuleNameChildNodesAndOpacity(ruleName, childNodes, opacity) { return DirectiveMarkdownNode.fromRuleNameChildNodesAndOpacity(FootnotesDirectiveMarkdownNode, ruleName, childNodes, opacity); }
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import DirectiveMarkdownNode from "../../../node/markdown/directive";
|
|
4
|
-
|
|
5
|
-
export default class IgnoreDirectiveMarkdownNode extends DirectiveMarkdownNode {
|
|
6
|
-
static fromRuleNameChildNodesAndOpacity(ruleName, childNodes, opacity) { return DirectiveMarkdownNode.fromRuleNameChildNodesAndOpacity(IgnoreDirectiveMarkdownNode, ruleName, childNodes, opacity); }
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import DirectiveMarkdownNode from "../../../node/markdown/directive";
|
|
4
|
-
|
|
5
|
-
export default class IndexDirectiveMarkdownNode extends DirectiveMarkdownNode {
|
|
6
|
-
static fromRuleNameChildNodesAndOpacity(ruleName, childNodes, opacity) { return DirectiveMarkdownNode.fromRuleNameChildNodesAndOpacity(IndexDirectiveMarkdownNode, ruleName, childNodes, opacity); }
|
|
7
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import MarkdownNode from "../../node/markdown";
|
|
4
|
-
|
|
5
|
-
export default class DirectiveMarkdownNode extends MarkdownNode {
|
|
6
|
-
asPlainText(context) {
|
|
7
|
-
const plainText = null;
|
|
8
|
-
|
|
9
|
-
return plainText;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
static lines = 0;
|
|
13
|
-
|
|
14
|
-
static fromRuleNameChildNodesAndOpacity(Class, ruleName, childNodes, opacity) { return MarkdownNode.fromRuleNameChildNodesAndOpacity(Class, ruleName, childNodes, opacity); }
|
|
15
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import MarkdownNode from "../../node/markdown";
|
|
4
|
-
|
|
5
|
-
export default class DirectivesMarkdownNode extends MarkdownNode {
|
|
6
|
-
asHTML(indent, context) {
|
|
7
|
-
const firstDirectiveMarkdownNode = this.getFirstDirectiveMarkdownNode(),
|
|
8
|
-
firstDirectiveMarkdownNodeHTML = firstDirectiveMarkdownNode.asHTML(indent, context),
|
|
9
|
-
html = firstDirectiveMarkdownNodeHTML; ///
|
|
10
|
-
|
|
11
|
-
return html;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
getFirstDirectiveMarkdownNode() {
|
|
15
|
-
const firstDirectiveMarkdownNode = this.fromFirstChildNode((firstChildNode) => {
|
|
16
|
-
const firstDirectiveMarkdownNode = firstChildNode; ///
|
|
17
|
-
|
|
18
|
-
return firstDirectiveMarkdownNode;
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
return firstDirectiveMarkdownNode;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
static fromRuleNameChildNodesAndOpacity(ruleName, childNodes, opacity) { return MarkdownNode.fromRuleNameChildNodesAndOpacity(DirectivesMarkdownNode, ruleName, childNodes, opacity); }
|
|
25
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import MarkdownNode from "../../node/markdown";
|
|
4
|
-
|
|
5
|
-
export default class EmptyTableCellMarkdownNode extends MarkdownNode {
|
|
6
|
-
createDOMElement(context) {
|
|
7
|
-
const domElement = null;
|
|
8
|
-
|
|
9
|
-
return domElement;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
childNodesAsHTML(indent, context) {
|
|
13
|
-
const childNodesHTML = null;
|
|
14
|
-
|
|
15
|
-
return childNodesHTML;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
static fromRuleNameChildNodesAndOpacity(ruleName, childNodes, opacity) { return MarkdownNode.fromRuleNameChildNodesAndOpacity(EmptyTableCellMarkdownNode, ruleName, childNodes, opacity); }
|
|
19
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import MarkdownNode from "../../node/markdown";
|
|
4
|
-
|
|
5
|
-
import { CARRIAGE_RETURN } from "../../constants";
|
|
6
|
-
|
|
7
|
-
export default class EndOfLineMarkdownNode extends MarkdownNode {
|
|
8
|
-
content(context) {
|
|
9
|
-
const content = CARRIAGE_RETURN;
|
|
10
|
-
|
|
11
|
-
return content;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
createDOMElement(context) {
|
|
15
|
-
const content = this.content(context),
|
|
16
|
-
textNode = document.createTextNode(content),
|
|
17
|
-
domElement = textNode; ///
|
|
18
|
-
|
|
19
|
-
return domElement;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
asHTML(indent, context) {
|
|
23
|
-
const content = this.content(context),
|
|
24
|
-
html = content; ///
|
|
25
|
-
|
|
26
|
-
return html;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
asPlainText(context) {
|
|
30
|
-
const content = this.content(context),
|
|
31
|
-
plainText = content; ///
|
|
32
|
-
|
|
33
|
-
return plainText;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
static lines = 0;
|
|
37
|
-
|
|
38
|
-
static fromRuleNameChildNodesAndOpacity(ruleName, childNodes, opacity) { return MarkdownNode.fromRuleNameChildNodesAndOpacity(EndOfLineMarkdownNode, ruleName, childNodes, opacity); }
|
|
39
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import MarkdownNode from "../../node/markdown";
|
|
4
|
-
|
|
5
|
-
export default class IndexHeadingMarkdownNode extends MarkdownNode {
|
|
6
|
-
static fromRuleNameChildNodesAndOpacity(ruleName, childNodes, opacity) { return MarkdownNode.fromRuleNameChildNodesAndOpacity(IndexHeadingMarkdownNode, ruleName, childNodes, opacity); }
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import ItemNode from "../../../node/markdown/item";
|
|
4
|
-
|
|
5
|
-
export default class UnorderedItemMarkdownNode extends ItemNode {
|
|
6
|
-
static fromRuleNameChildNodesAndOpacity(ruleName, childNodes, opacity) { return ItemNode.fromRuleNameChildNodesAndOpacity(UnorderedItemMarkdownNode, ruleName, childNodes, opacity); }
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import MarkdownNode from "../../node/markdown";
|
|
4
|
-
|
|
5
|
-
export default class ItemMarkdownNode extends MarkdownNode {
|
|
6
|
-
static fromRuleNameChildNodesAndOpacity(Class, ruleName, childNodes, opacity) { return MarkdownNode.fromRuleNameChildNodesAndOpacity(Class, ruleName, childNodes, opacity); }
|
|
7
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import MarkdownNode from "../../node/markdown";
|
|
4
|
-
|
|
5
|
-
export default class NonsenseMarkdownNode extends MarkdownNode {
|
|
6
|
-
static lines = 0;
|
|
7
|
-
|
|
8
|
-
static fromRuleNameChildNodesAndOpacity(ruleName, childNodes, opacity) { return MarkdownNode.fromRuleNameChildNodesAndOpacity(NonsenseMarkdownNode, ruleName, childNodes, opacity); }
|
|
9
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import MarkdownNode from "../../node/markdown";
|
|
4
|
-
|
|
5
|
-
export default class OrderedListMarkdownNode extends MarkdownNode {
|
|
6
|
-
static fromRuleNameChildNodesAndOpacity(ruleName, childNodes, opacity) { return MarkdownNode.fromRuleNameChildNodesAndOpacity(OrderedListMarkdownNode, ruleName, childNodes, opacity); }
|
|
7
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import MarkdownNode from "../../node/markdown";
|
|
4
|
-
|
|
5
|
-
export default class PlainTextMarkdownNode extends MarkdownNode {
|
|
6
|
-
isPlainTextMarkdownNode() {
|
|
7
|
-
const plainTextMarkdownNode = true;
|
|
8
|
-
|
|
9
|
-
return plainTextMarkdownNode;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
static fromRuleNameChildNodesAndOpacity(ruleName, childNodes, opacity) { return MarkdownNode.fromRuleNameChildNodesAndOpacity(PlainTextMarkdownNode, ruleName, childNodes, opacity); }
|
|
13
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import MarkdownNode from "../../node/markdown";
|
|
4
|
-
import EmbedDirectivesSubDivisionReplacement from "../../replacement/subDivision/embedDirectives";
|
|
5
|
-
import IncludeDirectivesSubDivisionReplacement from "../../replacement/subDivision/includeDirectives";
|
|
6
|
-
|
|
7
|
-
export default class SubDivisionMarkdownNode extends MarkdownNode {
|
|
8
|
-
resolveEmbeddings(divisionMarkdownNode, context) {
|
|
9
|
-
const subDivisionMarkdownNode = this, ///
|
|
10
|
-
embedDirectivesSubDivisionReplacement = EmbedDirectivesSubDivisionReplacement.fromSubDivisionMarkdownNode(subDivisionMarkdownNode, context);
|
|
11
|
-
|
|
12
|
-
if (embedDirectivesSubDivisionReplacement !== null) {
|
|
13
|
-
const subDivisionMarkdownNodes = embedDirectivesSubDivisionReplacement.replaceSubDivisionMarkdownNode(divisionMarkdownNode, context);
|
|
14
|
-
|
|
15
|
-
subDivisionMarkdownNodes.forEach((subDivisionMarkdownNode) => {
|
|
16
|
-
subDivisionMarkdownNode.resolveEmbeddings(divisionMarkdownNode, context);
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
resolveIncludes(divisionMarkdownNode, context) {
|
|
22
|
-
const subDivisionMarkdownNode = this, ///
|
|
23
|
-
includeDirectivesSubDivisionReplacement = IncludeDirectivesSubDivisionReplacement.fromSubDivisionMarkdownNode(subDivisionMarkdownNode, context);
|
|
24
|
-
|
|
25
|
-
if (includeDirectivesSubDivisionReplacement !== null) {
|
|
26
|
-
includeDirectivesSubDivisionReplacement.removeSubDivisionMarkdownNode(divisionMarkdownNode, context);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
lines(context) {
|
|
31
|
-
const lines = this.fromSecondChildNode((secondChildNode) => {
|
|
32
|
-
const secondMarkdownNode = secondChildNode, ///
|
|
33
|
-
lines = secondMarkdownNode.lines(context);
|
|
34
|
-
|
|
35
|
-
return lines;
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
return lines;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
asHTML(indent, context) {
|
|
42
|
-
const html = this.fromSecondChildNode((secondChildNode) => {
|
|
43
|
-
const secondMarkdownNode = secondChildNode, ///
|
|
44
|
-
html = secondMarkdownNode.asHTML(indent, context);
|
|
45
|
-
|
|
46
|
-
return html;
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
return html;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
asPlainText(context) {
|
|
53
|
-
const plainText = this.fromSecondChildNode((secondChildNode) => {
|
|
54
|
-
const secondMarkdownNode = secondChildNode, ///
|
|
55
|
-
plainText = secondMarkdownNode.asPlainText(context);
|
|
56
|
-
|
|
57
|
-
return plainText;
|
|
58
|
-
});
|
|
59
|
-
|
|
60
|
-
return plainText;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
static fromRuleNameChildNodesAndOpacity(ruleName, childNodes, opacity) { return MarkdownNode.fromRuleNameChildNodesAndOpacity(SubDivisionMarkdownNode, ruleName, childNodes, opacity); }
|
|
64
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import MarkdownNode from "../../node/markdown";
|
|
4
|
-
|
|
5
|
-
export default class TableBodyMarkdownNode extends MarkdownNode {
|
|
6
|
-
static fromRuleNameChildNodesAndOpacity(ruleName, childNodes, opacity) { return MarkdownNode.fromRuleNameChildNodesAndOpacity(TableBodyMarkdownNode, ruleName, childNodes, opacity); }
|
|
7
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import MarkdownNode from "../../node/markdown";
|
|
4
|
-
|
|
5
|
-
export default class TableBodyCellMarkdownNode extends MarkdownNode {
|
|
6
|
-
childNodesAsHTML(indent, context) {
|
|
7
|
-
const childNodesHTML = this.fromFirstChildNode((firstChildNode) => {
|
|
8
|
-
const tableCellMarkdownNode = firstChildNode, ///
|
|
9
|
-
childNodesHTML = tableCellMarkdownNode.childNodesAsHTML(indent, context);
|
|
10
|
-
|
|
11
|
-
return childNodesHTML;
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
return childNodesHTML;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
childNodesAsPlainText(indent, context) {
|
|
18
|
-
const childNodesPlainText = this.fromFirstChildNode((firstChildNode) => {
|
|
19
|
-
const tableCellMarkdownNode = firstChildNode, ///
|
|
20
|
-
childNodesPlainText = tableCellMarkdownNode.childNodesAsPlainText(indent, context);
|
|
21
|
-
|
|
22
|
-
return childNodesPlainText;
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
return childNodesPlainText;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
static fromRuleNameChildNodesAndOpacity(ruleName, childNodes, opacity) { return MarkdownNode.fromRuleNameChildNodesAndOpacity(TableBodyCellMarkdownNode, ruleName, childNodes, opacity); }
|
|
29
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import MarkdownNode from "../../node/markdown";
|
|
4
|
-
|
|
5
|
-
export default class TableBodyRowMarkdownNode extends MarkdownNode {
|
|
6
|
-
static fromRuleNameChildNodesAndOpacity(ruleName, childNodes, opacity) { return MarkdownNode.fromRuleNameChildNodesAndOpacity(TableBodyRowMarkdownNode, ruleName, childNodes, opacity); }
|
|
7
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import MarkdownNode from "../../node/markdown";
|
|
4
|
-
|
|
5
|
-
export default class TableCellMarkdownNode extends MarkdownNode {
|
|
6
|
-
childNodesAsHTML(indent, context) {
|
|
7
|
-
const childNodesHTML = this.fromFirstChildNode((firstChildNode) => {
|
|
8
|
-
const lineMarkdownNode = firstChildNode, ///
|
|
9
|
-
lineMarkdownNodeHTML = lineMarkdownNode.asHTML(indent, context),
|
|
10
|
-
childNodesHTML = lineMarkdownNodeHTML; ///
|
|
11
|
-
|
|
12
|
-
return childNodesHTML;
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
return childNodesHTML;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
static fromRuleNameChildNodesAndOpacity(ruleName, childNodes, opacity) { return MarkdownNode.fromRuleNameChildNodesAndOpacity(TableCellMarkdownNode, ruleName, childNodes, opacity); }
|
|
19
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import MarkdownNode from "../../node/markdown";
|
|
4
|
-
|
|
5
|
-
export default class TableCellDividerMarkdownNode extends MarkdownNode {
|
|
6
|
-
static fromRuleNameChildNodesAndOpacity(ruleName, childNodes, opacity) { return MarkdownNode.fromRuleNameChildNodesAndOpacity(TableCellDividerMarkdownNode, ruleName, childNodes, opacity); }
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import MarkdownNode from "../../node/markdown";
|
|
4
|
-
|
|
5
|
-
export default class TableDividerMarkdownNode extends MarkdownNode {
|
|
6
|
-
static fromRuleNameChildNodesAndOpacity(ruleName, childNodes, opacity) { return MarkdownNode.fromRuleNameChildNodesAndOpacity(TableDividerMarkdownNode, ruleName, childNodes, opacity); }
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import MarkdownNode from "../../node/markdown";
|
|
4
|
-
|
|
5
|
-
export default class TableHeadMarkdownNode extends MarkdownNode {
|
|
6
|
-
static fromRuleNameChildNodesAndOpacity(ruleName, childNodes, opacity) { return MarkdownNode.fromRuleNameChildNodesAndOpacity(TableHeadMarkdownNode, ruleName, childNodes, opacity); }
|
|
7
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import MarkdownNode from "../../node/markdown";
|
|
4
|
-
|
|
5
|
-
export default class TableHeadCellMarkdownNode extends MarkdownNode {
|
|
6
|
-
childNodesAsHTML(indent, context) {
|
|
7
|
-
const childNodesHTML = this.fromFirstChildNode((firstChildNode) => {
|
|
8
|
-
const tableCellMarkdownNode = firstChildNode, ///
|
|
9
|
-
childNodesHTML = tableCellMarkdownNode.childNodesAsHTML(indent, context);
|
|
10
|
-
|
|
11
|
-
return childNodesHTML;
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
return childNodesHTML;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
childNodesAsPlainText(indent, context) {
|
|
18
|
-
const childNodesPlainText = this.fromFirstChildNode((firstChildNode) => {
|
|
19
|
-
const tableCellMarkdownNode = firstChildNode, ///
|
|
20
|
-
childNodesPlainText = tableCellMarkdownNode.childNodesAsPlainText(indent, context);
|
|
21
|
-
|
|
22
|
-
return childNodesPlainText;
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
return childNodesPlainText;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
static fromRuleNameChildNodesAndOpacity(ruleName, childNodes, opacity) { return MarkdownNode.fromRuleNameChildNodesAndOpacity(TableHeadCellMarkdownNode, ruleName, childNodes, opacity); }
|
|
29
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import MarkdownNode from "../../node/markdown";
|
|
4
|
-
|
|
5
|
-
export default class TableHeadRowMarkdownNode extends MarkdownNode {
|
|
6
|
-
static fromRuleNameChildNodesAndOpacity(ruleName, childNodes, opacity) { return MarkdownNode.fromRuleNameChildNodesAndOpacity(TableHeadRowMarkdownNode, ruleName, childNodes, opacity); }
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import MarkdownNode from "../../node/markdown";
|
|
4
|
-
|
|
5
|
-
export default class UnorderedListMarkdownNode extends MarkdownNode {
|
|
6
|
-
static fromRuleNameChildNodesAndOpacity(ruleName, childNodes, opacity) { return MarkdownNode.fromRuleNameChildNodesAndOpacity(UnorderedListMarkdownNode, ruleName, childNodes, opacity); }
|
|
7
|
-
}
|