@adobe/helix-markdown-support 3.1.2 → 3.1.3
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.
|
@@ -9,9 +9,9 @@ jobs:
|
|
|
9
9
|
runs-on: ubuntu-latest
|
|
10
10
|
if: "!contains(github.event.head_commit.message, '[skip ci]')"
|
|
11
11
|
steps:
|
|
12
|
-
- uses: actions/checkout@
|
|
12
|
+
- uses: actions/checkout@v3
|
|
13
13
|
- name: Use Node.js 14.x
|
|
14
|
-
uses: actions/setup-node@
|
|
14
|
+
uses: actions/setup-node@v3
|
|
15
15
|
with:
|
|
16
16
|
node-version: '14.x'
|
|
17
17
|
- run: npm install
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [3.1.3](https://github.com/adobe/helix-markdown-support/compare/v3.1.2...v3.1.3) (2022-05-10)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* keep html in table paragraphs ([#108](https://github.com/adobe/helix-markdown-support/issues/108)) ([9b3ea28](https://github.com/adobe/helix-markdown-support/commit/9b3ea28a1fd785e575a56bb99d47f1c07ef2a88e))
|
|
7
|
+
|
|
1
8
|
## [3.1.2](https://github.com/adobe/helix-markdown-support/compare/v3.1.1...v3.1.2) (2022-01-24)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-markdown-support",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.3",
|
|
4
4
|
"description": "Helix Markdown Support",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -41,22 +41,22 @@
|
|
|
41
41
|
"@adobe/eslint-config-helix": "1.3.2",
|
|
42
42
|
"@semantic-release/changelog": "6.0.1",
|
|
43
43
|
"@semantic-release/git": "10.0.1",
|
|
44
|
-
"c8": "7.11.
|
|
44
|
+
"c8": "7.11.2",
|
|
45
45
|
"codecov": "3.8.3",
|
|
46
|
-
"eslint": "8.
|
|
46
|
+
"eslint": "8.15.0",
|
|
47
47
|
"eslint-plugin-header": "3.1.1",
|
|
48
|
-
"eslint-plugin-import": "2.
|
|
49
|
-
"husky": "
|
|
48
|
+
"eslint-plugin-import": "2.26.0",
|
|
49
|
+
"husky": "8.0.1",
|
|
50
50
|
"junit-report-builder": "3.0.0",
|
|
51
|
-
"lint-staged": "12.
|
|
51
|
+
"lint-staged": "12.4.1",
|
|
52
52
|
"mdast-builder": "1.1.1",
|
|
53
|
-
"mocha": "
|
|
53
|
+
"mocha": "10.0.0",
|
|
54
54
|
"mocha-multi-reporters": "1.5.1",
|
|
55
55
|
"remark-gfm": "3.0.1",
|
|
56
56
|
"remark-parse": "10.0.1",
|
|
57
57
|
"remark-stringify": "10.0.2",
|
|
58
58
|
"semantic-release": "19.0.2",
|
|
59
|
-
"unified": "10.1.
|
|
59
|
+
"unified": "10.1.2",
|
|
60
60
|
"unist-util-inspect": "7.0.0"
|
|
61
61
|
},
|
|
62
62
|
"lint-staged": {
|
|
@@ -54,7 +54,8 @@ export default function robustTables(tree) {
|
|
|
54
54
|
if (child.type === 'html') {
|
|
55
55
|
html += child.value;
|
|
56
56
|
} else {
|
|
57
|
-
const
|
|
57
|
+
const hast = md2hast(child, { allowDangerousHtml: true });
|
|
58
|
+
const cellHtml = hast2html(hast, { allowDangerousHtml: true });
|
|
58
59
|
if (child.type === 'code') {
|
|
59
60
|
// code needs special treatment, otherwise the newlines disappear.
|
|
60
61
|
html += cellHtml.replace(/\r?\n/g, '<br>');
|