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 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}"><span class="footnote-label">[{name}]:</span>…<a href="#fnref-{name}" class="footnote-backref">↩</a></div>` |
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
- <span class="footnote-label">[${name}]:</span>
138
- ${renderChildren(node, ctx)}<a href="#fnref-${name}" class="footnote-backref">\u21A9</a>
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":
@@ -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
- <span class="footnote-label">[${t}]:</span>
23
- ${n(e,r)}<a href="#fnref-${t}" class="footnote-backref">\u21A9</a>
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
- <span class="footnote-label">[${name}]:</span>
112
- ${renderChildren(node, ctx)}<a href="#fnref-${name}" class="footnote-backref">\u21A9</a>
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":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flatmarkdown-ast2html",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "A library to convert FlatMarkdown AST to HTML.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",