Do not replace contents of <style> blocks.
This commit is contained in:
parent
23d4fcda11
commit
844ce0e219
2 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -19,6 +19,7 @@ table
|
|||
figure
|
||||
iframe
|
||||
script
|
||||
style
|
||||
fieldset
|
||||
noscript
|
||||
blockquote
|
||||
|
|
Loading…
Reference in a new issue