diff --git a/dist/showdown.js b/dist/showdown.js index 6731a43..a3a24da 100644 Binary files a/dist/showdown.js and b/dist/showdown.js differ diff --git a/dist/showdown.js.map b/dist/showdown.js.map index d180338..2e24154 100644 Binary files a/dist/showdown.js.map and b/dist/showdown.js.map differ diff --git a/dist/showdown.min.js b/dist/showdown.min.js index 4e22f0d..230391b 100644 Binary files a/dist/showdown.min.js and b/dist/showdown.min.js differ diff --git a/dist/showdown.min.js.map b/dist/showdown.min.js.map index 91cb364..13fc3d5 100644 Binary files a/dist/showdown.min.js.map and b/dist/showdown.min.js.map differ diff --git a/src/converter.js b/src/converter.js index 3033510..32e8db4 100644 --- a/src/converter.js +++ b/src/converter.js @@ -44,7 +44,6 @@ showdown.Converter = function (converterOptions) { * @type {string[]} */ parserOrder = [ - 'tables', 'githubCodeBlocks', 'hashHTMLBlocks', 'stripLinkDefinitions', diff --git a/src/subParsers/blockGamut.js b/src/subParsers/blockGamut.js index 574399d..e2c24a6 100644 --- a/src/subParsers/blockGamut.js +++ b/src/subParsers/blockGamut.js @@ -13,6 +13,7 @@ showdown.subParser('blockGamut', function (text, options, globals) { text = text.replace(/^[ ]{0,2}([ ]?\-[ ]?){3,}[ \t]*$/gm, key); text = text.replace(/^[ ]{0,2}([ ]?_[ ]?){3,}[ \t]*$/gm, key); + text = showdown.subParser('tables')(text, options, globals); text = showdown.subParser('lists')(text, options, globals); text = showdown.subParser('codeBlocks')(text, options, globals); text = showdown.subParser('blockQuotes')(text, options, globals); diff --git a/test/features/tables/with-span-elements.html b/test/features/tables/with-span-elements.html new file mode 100644 index 0000000..1b4a4d1 --- /dev/null +++ b/test/features/tables/with-span-elements.html @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + +
First HeaderSecond Header
boldimg
italiclink
some codegoogle
www.foo.comnormal
\ No newline at end of file diff --git a/test/features/tables/with-span-elements.md b/test/features/tables/with-span-elements.md new file mode 100644 index 0000000..6a918e6 --- /dev/null +++ b/test/features/tables/with-span-elements.md @@ -0,0 +1,9 @@ +| First Header | Second Header | +| ------------- | ----------------- | +| **bold** | ![img](foo.jpg) | +| _italic_ | [link](bla.html) | +| `some code` | [google][1] | +| | normal | + + + [1]: www.google.com