redcarpet 1.14.1 → 1.14.2

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.
@@ -651,9 +651,13 @@ char_codespan(struct buf *ob, struct render *rndr, char *data, size_t offset, si
651
651
  static size_t
652
652
  char_escape(struct buf *ob, struct render *rndr, char *data, size_t offset, size_t size)
653
653
  {
654
+ static const char *escape_chars = "\\`*_{}[]()#+-.!:|&<>";
654
655
  struct buf work = { 0, 0, 0, 0, 0 };
655
656
 
656
657
  if (size > 1) {
658
+ if (strchr(escape_chars, data[1]) == NULL)
659
+ return 0;
660
+
657
661
  if (rndr->make.normal_text) {
658
662
  work.data = data + 1;
659
663
  work.size = 1;
@@ -21,10 +21,10 @@
21
21
 
22
22
  #include "buffer.h"
23
23
 
24
- #define UPSKIRT_VERSION "1.14.1"
24
+ #define UPSKIRT_VERSION "1.14.2"
25
25
  #define UPSKIRT_VER_MAJOR 1
26
26
  #define UPSKIRT_VER_MINOR 14
27
- #define UPSKIRT_VER_REVISION 1
27
+ #define UPSKIRT_VER_REVISION 2
28
28
 
29
29
  /********************
30
30
  * TYPE DEFINITIONS *
@@ -26,7 +26,7 @@
26
26
  # end
27
27
  #
28
28
  class Redcarpet
29
- VERSION = '1.14.1'
29
+ VERSION = '1.14.2'
30
30
 
31
31
  # Original Markdown formatted text.
32
32
  attr_reader :text
@@ -1,9 +1,9 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'redcarpet'
3
- s.version = '1.14.1'
3
+ s.version = '1.14.2'
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-05-18'
6
+ s.date = '2011-05-20'
7
7
  s.email = 'vicent@github.com'
8
8
  s.homepage = 'http://github.com/tanoku/redcarpet'
9
9
  s.authors = ["Natacha Porté", "Vicent Martí"]
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: 45
4
+ hash: 43
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 14
9
- - 1
10
- version: 1.14.1
9
+ - 2
10
+ version: 1.14.2
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-05-18 00:00:00 +03:00
19
+ date: 2011-05-20 00:00:00 +03:00
20
20
  default_executable:
21
21
  dependencies: []
22
22