flatmarkdown-ast2html 0.1.4 → 0.1.5
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/dist/index.cjs +2 -3
- package/dist/index.global.js +2 -3
- package/dist/index.js +2 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -175,7 +175,7 @@ Customize how `#hashtag` nodes are rendered. The fields are the same as `WikiLin
|
|
|
175
175
|
| `table_cell` | `<td>…</td>` or `<th>…</th>` (header row), with `align` attr |
|
|
176
176
|
| `thematic_break` | `<hr />` |
|
|
177
177
|
| `html_block` | Raw passthrough |
|
|
178
|
-
| `footnote_definition` | `<div class="footnote" id="fn-{name}"><
|
|
178
|
+
| `footnote_definition` | `<div class="footnote" id="fn-{name}"><a href="#fnref-{name}" class="footnote-label">[{name}]:</a>…</div>` |
|
|
179
179
|
| `description_list` | `<dl>…</dl>` |
|
|
180
180
|
| `description_term` | `<dt>…</dt>` |
|
|
181
181
|
| `description_details` | `<dd>…</dd>` |
|
package/dist/index.cjs
CHANGED
|
@@ -134,9 +134,8 @@ ${cells.join("")}</tr>
|
|
|
134
134
|
case "footnote_definition": {
|
|
135
135
|
const name = escapeHtml(node.name);
|
|
136
136
|
return `<div class="footnote" id="fn-${name}">
|
|
137
|
-
<
|
|
138
|
-
${renderChildren(node, ctx)}
|
|
139
|
-
</div>
|
|
137
|
+
<a href="#fnref-${name}" class="footnote-label">[${name}]:</a>
|
|
138
|
+
${renderChildren(node, ctx)}</div>
|
|
140
139
|
`;
|
|
141
140
|
}
|
|
142
141
|
case "description_list":
|
package/dist/index.global.js
CHANGED
|
@@ -19,9 +19,8 @@ ${(e.children||[]).map((a,i)=>{let l={...r,inHeaderRow:e.header,cellIndex:i};ret
|
|
|
19
19
|
`;case"table_cell":{let t=r.inHeaderRow?"th":"td",a=r.tableAlignments[r.cellIndex],i=a&&a!=="none"?` align="${a}"`:"";return`<${t}${i}>${n(e,r)}</${t}>
|
|
20
20
|
`}case"thematic_break":return`<hr />
|
|
21
21
|
`;case"html_block":return e.literal;case"footnote_definition":{let t=s(e.name);return`<div class="footnote" id="fn-${t}">
|
|
22
|
-
<
|
|
23
|
-
${n(e,r)}
|
|
24
|
-
</div>
|
|
22
|
+
<a href="#fnref-${t}" class="footnote-label">[${t}]:</a>
|
|
23
|
+
${n(e,r)}</div>
|
|
25
24
|
`}case"description_list":return`<dl>
|
|
26
25
|
${n(e,r)}</dl>
|
|
27
26
|
`;case"description_item":return n(e,r);case"description_term":return`<dt>${n(e,r)}</dt>
|
package/dist/index.js
CHANGED
|
@@ -108,9 +108,8 @@ ${cells.join("")}</tr>
|
|
|
108
108
|
case "footnote_definition": {
|
|
109
109
|
const name = escapeHtml(node.name);
|
|
110
110
|
return `<div class="footnote" id="fn-${name}">
|
|
111
|
-
<
|
|
112
|
-
${renderChildren(node, ctx)}
|
|
113
|
-
</div>
|
|
111
|
+
<a href="#fnref-${name}" class="footnote-label">[${name}]:</a>
|
|
112
|
+
${renderChildren(node, ctx)}</div>
|
|
114
113
|
`;
|
|
115
114
|
}
|
|
116
115
|
case "description_list":
|