diff --git a/src/showdown.js b/src/showdown.js index c2f2fc2..a5a88d0 100644 --- a/src/showdown.js +++ b/src/showdown.js @@ -215,8 +215,8 @@ var _HashHTMLBlocks = function(text) { // "paragraphs" that are wrapped in non-block-level tags, such as anchors, // phrase emphasis, and spans. The list of tags we're looking for is // hard-coded: - var block_tags_a = "p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math|ins|del" - var block_tags_b = "p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math" + var block_tags_a = "p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math|ins|del|style"; + var block_tags_b = "p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math|style"; // First, look for nested blocks, e.g.: //
An exciting sentence.
\ No newline at end of file diff --git a/test/cases/inline-style-tag.md b/test/cases/inline-style-tag.md new file mode 100644 index 0000000..1930226 --- /dev/null +++ b/test/cases/inline-style-tag.md @@ -0,0 +1,6 @@ + + + +An exciting sentence. \ No newline at end of file