redcarpet 1.14.1 → 1.14.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of redcarpet might be problematic. Click here for more details.
- data/ext/redcarpet/markdown.c +4 -0
- data/ext/redcarpet/markdown.h +2 -2
- data/lib/redcarpet.rb +1 -1
- data/redcarpet.gemspec +2 -2
- metadata +4 -4
data/ext/redcarpet/markdown.c
CHANGED
@@ -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;
|
data/ext/redcarpet/markdown.h
CHANGED
@@ -21,10 +21,10 @@
|
|
21
21
|
|
22
22
|
#include "buffer.h"
|
23
23
|
|
24
|
-
#define UPSKIRT_VERSION "1.14.
|
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
|
27
|
+
#define UPSKIRT_VER_REVISION 2
|
28
28
|
|
29
29
|
/********************
|
30
30
|
* TYPE DEFINITIONS *
|
data/lib/redcarpet.rb
CHANGED
data/redcarpet.gemspec
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'redcarpet'
|
3
|
-
s.version = '1.14.
|
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-
|
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:
|
4
|
+
hash: 43
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 14
|
9
|
-
-
|
10
|
-
version: 1.14.
|
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-
|
19
|
+
date: 2011-05-20 00:00:00 +03:00
|
20
20
|
default_executable:
|
21
21
|
dependencies: []
|
22
22
|
|