@canopycanopycanopy/b-ber-parser-footnotes 1.2.16 → 2.0.0

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 -10
  2. package/package.json +8 -7
package/dist/index.js CHANGED
@@ -50,9 +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()
54
- /* tokens, idx, options */
55
- {
53
+ function
54
+ /* tokens, idx, options */
55
+ renderFootnoteBlockOpen() {
56
56
  const start = counter.listCounter(_State.default.config.group_footnotes, _State.default.footnotes.length);
57
57
  return `<ol class="footnotes" start="${start}">`;
58
58
  }
@@ -103,9 +103,9 @@ function renderFootnoteClose() {
103
103
  return '</li>';
104
104
  }
105
105
 
106
- function renderFootnoteAnchor()
107
- /*tokens, idx, options,env, slf */
108
- {
106
+ function
107
+ /*tokens, idx, options,env, slf */
108
+ renderFootnoteAnchor() {
109
109
  /* ↩ with escape code to prevent display as Apple Emoji on iOS */
110
110
  // return ' <a href="#fnref' + id + '">\u21a9\uFE0E</a>';
111
111
  return '';
@@ -152,8 +152,8 @@ module.exports = function footnotePlugin(md, callback) {
152
152
  if (state.src.charCodeAt(pos) === 0x5d
153
153
  /* ] */
154
154
  ) {
155
- break;
156
- }
155
+ break;
156
+ }
157
157
  }
158
158
 
159
159
  if (pos === start + 2) return false; // no empty footnote labels
@@ -161,8 +161,8 @@ module.exports = function footnotePlugin(md, callback) {
161
161
  if (pos + 1 >= max || state.src.charCodeAt(++pos) !== 0x3a
162
162
  /* : */
163
163
  ) {
164
- return false;
165
- }
164
+ return false;
165
+ }
166
166
 
167
167
  if (silent) return true;
168
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.16",
3
+ "version": "2.0.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -20,14 +20,15 @@
20
20
  "@babel/cli": "^7.10.5",
21
21
  "@babel/core": "^7.10.5",
22
22
  "@babel/preset-env": "^7.10.4",
23
+ "browserslist": "^4.17.4",
23
24
  "jest": "^26.6.3",
24
- "rimraf": "^2.6.3"
25
+ "rimraf": "^2.7.1"
25
26
  },
26
27
  "dependencies": {
27
- "@canopycanopycanopy/b-ber-lib": "1.2.16",
28
- "@canopycanopycanopy/b-ber-logger": "1.2.16",
29
- "@canopycanopycanopy/b-ber-shapes-directives": "1.2.16",
30
- "@canopycanopycanopy/b-ber-templates": "1.2.16",
28
+ "@canopycanopycanopy/b-ber-lib": "2.0.0",
29
+ "@canopycanopycanopy/b-ber-logger": "2.0.0",
30
+ "@canopycanopycanopy/b-ber-shapes-directives": "2.0.0",
31
+ "@canopycanopycanopy/b-ber-templates": "2.0.0",
31
32
  "lodash": "^4.17.21",
32
33
  "lodash.isundefined": "^3.0.1",
33
34
  "tar": "^6.1.11"
@@ -49,5 +50,5 @@
49
50
  "url": "https://maxwellsimmer.com"
50
51
  }
51
52
  ],
52
- "gitHead": "b4d9c563beb349a32c19e0f65447f7c7dbc8ea52"
53
+ "gitHead": "dbeae192709705f5bc211195ff343cbd999f9caf"
53
54
  }