@canopycanopycanopy/b-ber-parser-footnotes 1.2.10 → 1.2.13-react-reader.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.
Files changed (2) hide show
  1. package/dist/index.js +10 -6
  2. package/package.json +9 -7
package/dist/index.js CHANGED
@@ -50,7 +50,9 @@ function renderFootnoteRef(tokens, idx, options, env, slf) {
50
50
  return `<a epub:type="noteref" class="footnote-ref" href="notes.xhtml#fn${ref}" id="fnref${ref}">${caption}</a>`;
51
51
  }
52
52
 
53
- function renderFootnoteBlockOpen() {
53
+ function renderFootnoteBlockOpen()
54
+ /* tokens, idx, options */
55
+ {
54
56
  const start = counter.listCounter(_State.default.config.group_footnotes, _State.default.footnotes.length);
55
57
  return `<ol class="footnotes" start="${start}">`;
56
58
  }
@@ -101,7 +103,9 @@ function renderFootnoteClose() {
101
103
  return '</li>';
102
104
  }
103
105
 
104
- function renderFootnoteAnchor() {
106
+ function renderFootnoteAnchor()
107
+ /*tokens, idx, options,env, slf */
108
+ {
105
109
  /* ↩ with escape code to prevent display as Apple Emoji on iOS */
106
110
  // return ' <a href="#fnref' + id + '">\u21a9\uFE0E</a>';
107
111
  return '';
@@ -148,8 +152,8 @@ module.exports = function footnotePlugin(md, callback) {
148
152
  if (state.src.charCodeAt(pos) === 0x5d
149
153
  /* ] */
150
154
  ) {
151
- break;
152
- }
155
+ break;
156
+ }
153
157
  }
154
158
 
155
159
  if (pos === start + 2) return false; // no empty footnote labels
@@ -157,8 +161,8 @@ module.exports = function footnotePlugin(md, callback) {
157
161
  if (pos + 1 >= max || state.src.charCodeAt(++pos) !== 0x3a
158
162
  /* : */
159
163
  ) {
160
- return false;
161
- }
164
+ return false;
165
+ }
162
166
 
163
167
  if (silent) return true;
164
168
  pos++; // Footnote is found, start parsing footnote body here
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canopycanopycanopy/b-ber-parser-footnotes",
3
- "version": "1.2.10",
3
+ "version": "1.2.13-react-reader.5+f56709c6",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -24,11 +24,13 @@
24
24
  "rimraf": "^2.6.3"
25
25
  },
26
26
  "dependencies": {
27
- "@canopycanopycanopy/b-ber-lib": "1.2.10",
28
- "@canopycanopycanopy/b-ber-logger": "1.2.10",
29
- "@canopycanopycanopy/b-ber-shapes-directives": "1.2.2",
30
- "@canopycanopycanopy/b-ber-templates": "1.2.10",
31
- "lodash.isundefined": "^3.0.1"
27
+ "@canopycanopycanopy/b-ber-lib": "1.2.13-react-reader.5+f56709c6",
28
+ "@canopycanopycanopy/b-ber-logger": "1.2.13-react-reader.5+f56709c6",
29
+ "@canopycanopycanopy/b-ber-shapes-directives": "1.2.13-react-reader.5+f56709c6",
30
+ "@canopycanopycanopy/b-ber-templates": "1.2.13-react-reader.5+f56709c6",
31
+ "lodash": "^4.17.21",
32
+ "lodash.isundefined": "^3.0.1",
33
+ "tar": "^6.1.11"
32
34
  },
33
35
  "files": [
34
36
  "dist"
@@ -47,5 +49,5 @@
47
49
  "url": "https://maxwellsimmer.com"
48
50
  }
49
51
  ],
50
- "gitHead": "2851c865a57746417975cedb733f79b42d3f0084"
52
+ "gitHead": "f56709c6bbaa455c0a1f704cf7de19b924ba5b99"
51
53
  }