Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Do not replace contents of <style> blocks.

  • Loading branch information...
commit 844ce0e21936a9264f8fbedb1a946c738dc4c97a 1 parent 23d4fcd
@cweider cweider authored
Showing with 3 additions and 2 deletions.
  1. +2 −2 html/html_smartypants.c
  2. +1 −0  html_block_names.txt
View
4 html/html_smartypants.c
@@ -264,8 +264,8 @@ smartypants_cb__dquote(struct buf *ob, struct smartypants_data *smrt, uint8_t pr
static size_t
smartypants_cb__ltag(struct buf *ob, struct smartypants_data *smrt, uint8_t previous_char, const uint8_t *text, size_t size)
{
- static const char *skip_tags[] = {"pre", "code", "kbd", "script"};
- static const size_t skip_tags_count = 4;
+ static const char *skip_tags[] = {"pre", "code", "kbd", "script", "style"};
+ static const size_t skip_tags_count = 5;
size_t tag, i = 0;
View
1  html_block_names.txt
@@ -19,6 +19,7 @@ table
figure
iframe
script
+style
fieldset
noscript
blockquote
Please sign in to comment.
Something went wrong with that request. Please try again.