@honkit/markup-it 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@honkit/markup-it",
3
- "version": "5.1.4",
3
+ "version": "5.1.5",
4
4
  "description": "Pipeline for working with markup input (for example Markdown)",
5
5
  "keywords": [
6
6
  "draft-js",
@@ -52,5 +52,5 @@
52
52
  "publishConfig": {
53
53
  "access": "public"
54
54
  },
55
- "gitHead": "1c26afb66065cd7437e0e8f9d226327d49259313"
55
+ "gitHead": "d75ed67c85e3fc6976e837b56402f84e860886c7"
56
56
  }
@@ -67,3 +67,5 @@ And an image <img src="src" alt="alt">.</p>
67
67
 
68
68
  <pre><code>Code goes here.
69
69
  Lots of it...</code></pre>
70
+
71
+ <p>Here is a place where we want to intentionally add a line break.<br>As such, I have ended the previous line with two spaces.</p>
@@ -53,3 +53,6 @@ And an image ![alt](src).
53
53
 
54
54
  Code goes here.
55
55
  Lots of it...
56
+
57
+ Here is a place where we want to intentionally add a line break.
58
+ As such, I have ended the previous line with two spaces.
@@ -13,6 +13,7 @@ function cleanupText(src) {
13
13
  .replace(/\t/g, " ")
14
14
  .replace(/\u00a0/g, " ")
15
15
  .replace(/\u2424/g, "\n")
16
+ .replace(/ +\n/g, "<br>")
16
17
  .replace(/^ +$/gm, "");
17
18
  }
18
19