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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0bf67bb848da96547839cc6c602061b2671320a8
4
- data.tar.gz: 696770a2783fb0650f20187b0e6c40cc6eedf4d9
3
+ metadata.gz: 22bddd1461e328aa2fbe6efb52ed876bb3ce23e5
4
+ data.tar.gz: 88c87895f31eedbd763c33798725d1707319c85c
5
5
  SHA512:
6
- metadata.gz: bdfb5d5ae166559eba36b7b7e057556ca3d3b18565c8c711753594c8ac584a64bee9f4d11bb89cd92d40b1e5e0d4953f35ab3788a0e2469b3201a8f1d07d4f05
7
- data.tar.gz: 8ef5048a94f1971b574dd041676187b14aafd46552c437e5e752779dee3d6b147d93e02795f4c0c3cf9a91bf215e6ec04f66ef0ab75cbc7f8fc7dc6316c7f117
6
+ metadata.gz: 98be06e055fe5f742ca0113d7e88379238919893586378ff0ce765ed64cd44c676be362b8bb1626c01e2f3fc71bb3ff33cf267919163d82d80d50665b96a73aa
7
+ data.tar.gz: fe463bbfb1e0d416c817faf851c1fcbcf91654906b844c0ad34a58cd612cdce5b3c4392016b34302e6672ad67a93a6a99556f35b7f3d193271fce547caf69857
@@ -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.
@@ -22,6 +22,7 @@
22
22
  */
23
23
 
24
24
  #define BUFFER_MAX_ALLOC_SIZE (1024 * 1024 * 16) //16mb
25
+ #define __USE_MINGW_ANSI_STDIO 1
25
26
 
26
27
  #include "buffer.h"
27
28
 
@@ -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;
@@ -2,7 +2,7 @@ require 'redcarpet.so'
2
2
  require 'redcarpet/compat'
3
3
 
4
4
  module Redcarpet
5
- VERSION = '3.3.3'
5
+ VERSION = '3.3.4'
6
6
 
7
7
  class Markdown
8
8
  attr_reader :renderer
@@ -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.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-09-24'
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í"]
@@ -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.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-09-24 00:00:00.000000000 Z
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.5
116
+ rubygems_version: 2.2.2
117
117
  signing_key:
118
118
  specification_version: 4
119
119
  summary: Markdown that smells nice