redcarpet 3.3.3 → 3.3.4
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.
- checksums.yaml +4 -4
- data/README.markdown +1 -0
- data/ext/redcarpet/buffer.c +1 -0
- data/ext/redcarpet/html.c +1 -1
- data/lib/redcarpet.rb +1 -1
- data/redcarpet.gemspec +2 -2
- data/test/html_render_test.rb +7 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22bddd1461e328aa2fbe6efb52ed876bb3ce23e5
|
4
|
+
data.tar.gz: 88c87895f31eedbd763c33798725d1707319c85c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98be06e055fe5f742ca0113d7e88379238919893586378ff0ce765ed64cd44c676be362b8bb1626c01e2f3fc71bb3ff33cf267919163d82d80d50665b96a73aa
|
7
|
+
data.tar.gz: fe463bbfb1e0d416c817faf851c1fcbcf91654906b844c0ad34a58cd612cdce5b3c4392016b34302e6672ad67a93a6a99556f35b7f3d193271fce547caf69857
|
data/README.markdown
CHANGED
@@ -2,6 +2,7 @@ Redcarpet is written with sugar, spice and everything nice
|
|
2
2
|
============================================================
|
3
3
|
|
4
4
|
[![Build Status](https://travis-ci.org/vmg/redcarpet.svg?branch=master)](https://travis-ci.org/vmg/redcarpet)
|
5
|
+
[![Dependency Status](https://www.versioneye.com/ruby/redcarpet/badge.svg)](https://www.versioneye.com/ruby/redcarpet)
|
5
6
|
|
6
7
|
Redcarpet is a Ruby library for Markdown processing that smells like
|
7
8
|
butterflies and popcorn.
|
data/ext/redcarpet/buffer.c
CHANGED
data/ext/redcarpet/html.c
CHANGED
@@ -285,7 +285,7 @@ rndr_header_anchor(struct buf *out, const struct buf *anchor)
|
|
285
285
|
while (i < size && a[i] != '>')
|
286
286
|
i++;
|
287
287
|
}
|
288
|
-
else if (strchr(STRIPPED, a[i])) {
|
288
|
+
else if (!isascii(a[i]) || strchr(STRIPPED, a[i])) {
|
289
289
|
if (inserted && !stripped)
|
290
290
|
bufputc(out, '-');
|
291
291
|
stripped = 1;
|
data/lib/redcarpet.rb
CHANGED
data/redcarpet.gemspec
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
Gem::Specification.new do |s|
|
3
3
|
s.name = 'redcarpet'
|
4
|
-
s.version = '3.3.
|
4
|
+
s.version = '3.3.4'
|
5
5
|
s.summary = "Markdown that smells nice"
|
6
6
|
s.description = 'A fast, safe and extensible Markdown to (X)HTML parser'
|
7
|
-
s.date = '2015-
|
7
|
+
s.date = '2015-12-25'
|
8
8
|
s.email = 'vicent@github.com'
|
9
9
|
s.homepage = 'http://github.com/vmg/redcarpet'
|
10
10
|
s.authors = ["Natacha Porté", "Vicent Martí"]
|
data/test/html_render_test.rb
CHANGED
@@ -238,4 +238,11 @@ HTML
|
|
238
238
|
|
239
239
|
assert_no_match %r{<style>}, output
|
240
240
|
end
|
241
|
+
|
242
|
+
def test_non_ascii_removal_in_header_anchors
|
243
|
+
markdown = "# Glühlampe"
|
244
|
+
html = "<h1 id=\"gl-hlampe\">Glühlampe</h1>\n"
|
245
|
+
|
246
|
+
assert_equal html, render(markdown, with: [:with_toc_data])
|
247
|
+
end
|
241
248
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redcarpet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.3.
|
4
|
+
version: 3.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Natacha Porté
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-12-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake-compiler
|
@@ -113,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
113
113
|
version: '0'
|
114
114
|
requirements: []
|
115
115
|
rubyforge_project:
|
116
|
-
rubygems_version: 2.2.
|
116
|
+
rubygems_version: 2.2.2
|
117
117
|
signing_key:
|
118
118
|
specification_version: 4
|
119
119
|
summary: Markdown that smells nice
|