@honkit/markdown-legacy 4.0.7 → 5.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/lib/index.js +3 -3
  2. package/package.json +3 -3
package/lib/index.js CHANGED
@@ -1,10 +1,10 @@
1
- var HTMLParser = require("@honkit/html");
1
+ var { createParser } = require("@honkit/html");
2
2
 
3
3
  var toHTML = require("./toHTML");
4
4
  var toMarkdown = require("./toMarkdown");
5
5
  var page = require("./page");
6
6
 
7
- module.exports = HTMLParser.createParser(toHTML, toMarkdown);
8
-
7
+ module.exports = createParser(toHTML, toMarkdown);
9
8
  // Add the custom page escaping
9
+ // TODO: remove it. use parser.page.prepare instead
10
10
  module.exports.page.prepare = page.prepare;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@honkit/markdown-legacy",
3
- "version": "4.0.7",
3
+ "version": "5.0.0",
4
4
  "description": "Parse markdown content for HonKit",
5
5
  "homepage": "https://github.com/honkit/honkit",
6
6
  "bugs": {
@@ -36,7 +36,7 @@
36
36
  "updateSnapshot": "jest -u"
37
37
  },
38
38
  "dependencies": {
39
- "@honkit/html": "^4.0.7",
39
+ "@honkit/html": "^5.0.0",
40
40
  "kramed": "0.5.6",
41
41
  "lodash": "^4.13.1"
42
42
  },
@@ -47,5 +47,5 @@
47
47
  "publishConfig": {
48
48
  "access": "public"
49
49
  },
50
- "gitHead": "b12f6eb9937552d1ff1d9a8cad75e74f1664c666"
50
+ "gitHead": "9feb7e251f1d305c2cd521f78f0a275b847a6e1b"
51
51
  }