@honkit/markdown 5.1.4 → 5.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
@@ -1,6 +1,6 @@
1
- # `@honkit/markdow`
1
+ # `@honkit/markdown`
2
2
 
3
- This node module uses `@honkit/markup-i`t to parse markdown for gitbook (SUMMARY.md, README.md).
3
+ This node module uses `@honkit/markup-it` to parse markdown for gitbook (SUMMARY.md, README.md).
4
4
 
5
5
  ## Note
6
6
 
@@ -21,6 +21,9 @@ describe("Page parsing", () => {
21
21
  assert_1.default.equal(page("# Hello").content, "<h1>Hello</h1>");
22
22
  assert_1.default.equal(page("# Hello {#test}").content, '<h1 id="test">Hello</h1>');
23
23
  });
24
+ it("should handle line breaks appropriately", () => {
25
+ assert_1.default.equal(page("Line one. \nLine two.").content, "<p>Line one.<br>Line two.</p>");
26
+ });
24
27
  it("should escape codeblocks in preparation (1)", () => {
25
28
  assert_1.default.equal(page.prepare("Hello `world`"), "Hello {% raw %}`world`{% endraw %}\n\n");
26
29
  assert_1.default.equal(page.prepare("Hello `world test`"), "Hello {% raw %}`world test`{% endraw %}\n\n");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@honkit/markdown",
3
- "version": "5.1.4",
3
+ "version": "5.1.5",
4
4
  "description": "Parse markdown content for honkit",
5
5
  "homepage": "https://github.com/honkit/honkit",
6
6
  "bugs": {
@@ -38,8 +38,8 @@
38
38
  "prepublish": "npm run --if-present build"
39
39
  },
40
40
  "dependencies": {
41
- "@honkit/html": "^5.1.4",
42
- "@honkit/markup-it": "^5.1.4",
41
+ "@honkit/html": "^5.1.5",
42
+ "@honkit/markup-it": "^5.1.5",
43
43
  "markdown-escape": "^1.0.1"
44
44
  },
45
45
  "devDependencies": {
@@ -49,5 +49,5 @@
49
49
  "publishConfig": {
50
50
  "access": "public"
51
51
  },
52
- "gitHead": "1c26afb66065cd7437e0e8f9d226327d49259313"
52
+ "gitHead": "d75ed67c85e3fc6976e837b56402f84e860886c7"
53
53
  }