Clipper: Fixes #1783: Fixed importing tables that contain pipes

pull/1856/head
Laurent Cozic 2019-09-07 10:32:52 +01:00
parent 038efa10f2
commit 5135c8a782
5 changed files with 13 additions and 5 deletions

View File

@ -39,7 +39,7 @@ describe('HtmlToMd', function() {
const htmlPath = basePath + '/' + htmlFilename; const htmlPath = basePath + '/' + htmlFilename;
const mdPath = basePath + '/' + filename(htmlFilename) + '.md'; const mdPath = basePath + '/' + filename(htmlFilename) + '.md';
// if (htmlFilename !== 'mathjax_block.html') continue; // if (htmlFilename !== 'table_with_pipe.html') continue;
const htmlToMdOptions = {}; const htmlToMdOptions = {};

View File

@ -0,0 +1,4 @@
<table>
<tr><td>Line with | pipe</td><td>No pipe</td></tr>
<tr><td>One</td><td>Two</td></tr>
</table>

View File

@ -0,0 +1,4 @@
| | |
| --- | --- |
| Line with \| pipe | No pipe |
| One | Two |

View File

@ -4013,9 +4013,9 @@
} }
}, },
"joplin-turndown-plugin-gfm": { "joplin-turndown-plugin-gfm": {
"version": "1.0.8", "version": "1.0.9",
"resolved": "https://registry.npmjs.org/joplin-turndown-plugin-gfm/-/joplin-turndown-plugin-gfm-1.0.8.tgz", "resolved": "https://registry.npmjs.org/joplin-turndown-plugin-gfm/-/joplin-turndown-plugin-gfm-1.0.9.tgz",
"integrity": "sha512-uXgq2zGvjiMl/sXG7946EGhh1pyGbZ0L/6z21LBi8D6BJgHQufmXdve/UP3zpgnhiFhfXvzGY10uNaTuDQ99iQ==" "integrity": "sha512-SOa/Uiy3nyoBGtHqFe+TBg10UTIOzzcUUzNhx2MyR4Z0vbKL3enGggGypig1t7G5uHwv5j+NhooRuM619Zk0bw=="
}, },
"js-tokens": { "js-tokens": {
"version": "3.0.2", "version": "3.0.2",

View File

@ -103,7 +103,7 @@
"html-minifier": "^4.0.0", "html-minifier": "^4.0.0",
"image-type": "^3.0.0", "image-type": "^3.0.0",
"joplin-turndown": "^4.0.17", "joplin-turndown": "^4.0.17",
"joplin-turndown-plugin-gfm": "^1.0.8", "joplin-turndown-plugin-gfm": "^1.0.9",
"jssha": "^2.3.1", "jssha": "^2.3.1",
"katex": "^0.10.0", "katex": "^0.10.0",
"levenshtein": "^1.0.5", "levenshtein": "^1.0.5",