redcarpet 1.12.0 → 1.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/ext/xhtml.c CHANGED
@@ -439,10 +439,7 @@ rndr_raw_html(struct buf *ob, struct buf *text, void *opaque)
439
439
  struct xhtml_renderopt *options = opaque;
440
440
  int escape_html = 0;
441
441
 
442
- if (options->flags & XHTML_SKIP_HTML)
443
- escape_html = 1;
444
-
445
- else if ((options->flags & XHTML_SKIP_STYLE) != 0 && is_html_tag(text, "style"))
442
+ if ((options->flags & XHTML_SKIP_STYLE) != 0 && is_html_tag(text, "style"))
446
443
  escape_html = 1;
447
444
 
448
445
  else if ((options->flags & XHTML_SKIP_LINKS) != 0 && is_html_tag(text, "a"))
@@ -788,6 +785,11 @@ ups_xhtml_renderer(struct mkd_renderer *renderer, unsigned int render_flags)
788
785
  renderer->autolink = NULL;
789
786
  }
790
787
 
788
+ if (render_flags & XHTML_SKIP_HTML) {
789
+ renderer->raw_html_tag = NULL;
790
+ renderer->blockhtml = NULL;
791
+ }
792
+
791
793
  if (render_flags & XHTML_SMARTYPANTS)
792
794
  renderer->normal_text = rndr_smartypants;
793
795
 
data/lib/redcarpet.rb CHANGED
@@ -26,7 +26,7 @@
26
26
  # end
27
27
  #
28
28
  class Redcarpet
29
- VERSION = '1.12.0'
29
+ VERSION = '1.12.1'
30
30
 
31
31
  # Original Markdown formatted text.
32
32
  attr_reader :text
data/redcarpet.gemspec CHANGED
@@ -1,9 +1,9 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'redcarpet'
3
- s.version = '1.12.0'
3
+ s.version = '1.12.1'
4
4
  s.summary = "Ruby bindings for libupskirt"
5
5
  s.description = 'A fast and safe Markdown to (X)HTML parser'
6
- s.date = '2011-04-30'
6
+ s.date = '2011-05-01'
7
7
  s.email = 'vicent@github.com'
8
8
  s.homepage = 'http://github.com/tanoku/redcarpet'
9
9
  s.has_rdoc = true
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redcarpet
3
3
  version: !ruby/object:Gem::Version
4
- hash: 39
4
+ hash: 37
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 12
9
- - 0
10
- version: 1.12.0
9
+ - 1
10
+ version: 1.12.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Natacha Port\xC3\xA9"
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-04-30 00:00:00 +03:00
19
+ date: 2011-05-01 00:00:00 +03:00
20
20
  default_executable:
21
21
  dependencies: []
22
22