Hello community, here is the log from the commit of package rubygem-kramdown for openSUSE:Factory checked in at 2016-03-18 21:41:07 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-kramdown (Old) and /work/SRC/openSUSE:Factory/.rubygem-kramdown.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-kramdown" Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-kramdown/rubygem-kramdown.changes 2015-10-06 13:26:10.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-kramdown.new/rubygem-kramdown.changes 2016-03-18 21:41:12.000000000 +0100 @@ -1,0 +2,6 @@ +Thu Mar 3 05:29:12 UTC 2016 - [email protected] + +- updated to version 1.10.0 + see installed news.page + +------------------------------------------------------------------- Old: ---- kramdown-1.9.0.gem New: ---- kramdown-1.10.0.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-kramdown.spec ++++++ --- /var/tmp/diff_new_pack.RmLV8t/_old 2016-03-18 21:41:13.000000000 +0100 +++ /var/tmp/diff_new_pack.RmLV8t/_new 2016-03-18 21:41:13.000000000 +0100 @@ -1,7 +1,7 @@ # # spec file for package rubygem-kramdown # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,7 +24,7 @@ # Name: rubygem-kramdown -Version: 1.9.0 +Version: 1.10.0 Release: 0 %define mod_name kramdown %define mod_full_name %{mod_name}-%{version} ++++++ kramdown-1.9.0.gem -> kramdown-1.10.0.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CONTRIBUTERS new/CONTRIBUTERS --- old/CONTRIBUTERS 2015-10-01 21:41:43.000000000 +0200 +++ new/CONTRIBUTERS 2016-03-02 18:45:04.000000000 +0100 @@ -1,6 +1,6 @@ Count Name ======= ==== - 781 Thomas Leitner <[email protected]> + 789 Thomas Leitner <[email protected]> 6 Gioele Barabucci <[email protected]> 4 Ted Pak <[email protected]> 4 Arne Brasseur <[email protected]> @@ -9,6 +9,8 @@ 3 Brandur <[email protected]> 3 Ben Armston <[email protected]> 3 Alex Marandon <[email protected]> + 2 Tom Thorogood <[email protected]> + 2 Parker Moore <[email protected]> 2 Nathanael Jones <[email protected]> 2 Max Meyer <[email protected]> 2 Jo Hund <[email protected]> @@ -17,10 +19,10 @@ 1 utenmiki <[email protected]> 1 Trevor Wennblom <[email protected]> 1 tomykaira <[email protected]> - 1 Tom Thorogood <[email protected]> 1 Tim Blair <[email protected]> 1 Tim Besard <[email protected]> 1 Tim Bates <[email protected]> + 1 Sun Yaozhu <[email protected]> 1 Simon Lydell <[email protected]> 1 Shusaku NAKAZATO <[email protected]> 1 Sebastian Boehm <[email protected]> @@ -38,5 +40,7 @@ 1 Jens Kraemer <[email protected]> 1 Hector Correa <[email protected]> 1 Floreal Morandat [email protected] <[email protected]> + 1 Diego Galeota <[email protected]> 1 Damien Pollet <[email protected]> + 1 Christopher Jefferson <[email protected]> 1 Alex Tomlins <[email protected]> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/VERSION new/VERSION --- old/VERSION 2015-10-01 21:41:43.000000000 +0200 +++ new/VERSION 2016-03-02 18:45:04.000000000 +0100 @@ -1 +1 @@ -1.9.0 +1.10.0 Files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/doc/index.page new/doc/index.page --- old/doc/index.page 2015-10-01 21:41:44.000000000 +0200 +++ new/doc/index.page 2016-03-02 18:45:04.000000000 +0100 @@ -97,8 +97,8 @@ It is probably the fastest pure-Ruby Markdown converter available (September 2014), being about 3x faster than [Maruku] and about 4.5x faster than [BlueFeather]. -Version **1.9.0**{:itemprop="softwareVersion"} released on -**2015-10-01**{:itemprop="datePublished"}, [more news](news.html) +Version **1.10.0**{:itemprop="softwareVersion"} released on +**2016-03-02**{:itemprop="datePublished"}, [more news](news.html) {: style="text-align: center; font-size: 80%"} </div> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/doc/syntax.page new/doc/syntax.page --- old/doc/syntax.page 2015-10-01 21:41:44.000000000 +0200 +++ new/doc/syntax.page 2016-03-02 18:45:04.000000000 +0100 @@ -1136,9 +1136,9 @@ style links only provide the link text in the text flow and everything else is defined elsewhere. This also allows you to reuse link definitions. -An inline style link can be created by surrounding the link text which must contain at least one -character with square brackets, followed immediately by the link URL (and an optional title in -single or double quotes preceded by at least one space) in normal parentheses. For example: +An inline style link can be created by surrounding the link text with square brackets, followed +immediately by the link URL (and an optional title in single or double quotes preceded by at least +one space) in normal parentheses. For example: This is [a link](http://rubyforge.org) to a page. A [link](../test "local URI") can also have a title. @@ -1150,6 +1150,8 @@ However, if you use square brackets within the link text, you have to either properly nest them or to escape them. It is not possible to create nested links! + The link text may also be omitted, e.g. for creating link anchors. + * The link URL has to contain properly nested parentheses if no title is specified, or the link URL must be contained in angle brackets (incorrectly nested parentheses are allowed). @@ -1222,9 +1224,8 @@ Images can be specified via a syntax that is similar to the one used by links. The difference is that you have to use an exclamation mark before the first square bracket and that the link text of a -normal link, which may also be the empty string in case of image links, becomes the alternative text -of the image link. As with normal links, image links can be written inline or reference style. For -example: +normal link becomes the alternative text of the image link. As with normal links, image links can be +written inline or reference style. For example: Here comes a ! And here . Or ![here]. @@ -1583,10 +1584,12 @@ class names -: A class name is defined by using a dot and then the class name. This is (almost, but not quite) a - short hand for the key-value pair `class="class-name"`. Almost because it actually means that the - class name should be appended to the current value of the `class` attribute. The following ALDs - are all equivalent: +: A class name is defined by using a dot and then the class name which may contain any character + except whitespace, the dot character and the hash character. + + This is (almost, but not quite) a short hand for the key-value pair `class="class-name"`. Almost + because it actually means that the class name should be appended to the current value of the + `class` attribute. The following ALDs are all equivalent: {:id: .cls1 .cls2} {:id: class="cls1" .cls2} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/kramdown/converter/base.rb new/lib/kramdown/converter/base.rb --- old/lib/kramdown/converter/base.rb 2015-10-01 21:41:44.000000000 +0200 +++ new/lib/kramdown/converter/base.rb 2016-03-02 18:45:04.000000000 +0100 @@ -182,8 +182,8 @@ # Extract the code block/span language from the attributes. def extract_code_language(attr) - if attr['class'] && attr['class'] =~ /\blanguage-\w[\w-]*\b/ - attr['class'].scan(/\blanguage-(\w[\w-]*)\b/).first.first + if attr['class'] && attr['class'] =~ /\blanguage-\S+/ + attr['class'].scan(/\blanguage-(\S+)/).first.first end end @@ -192,7 +192,7 @@ # *Warning*: This version will modify the given attributes if a language is present. def extract_code_language!(attr) lang = extract_code_language(attr) - attr['class'] = attr['class'].sub(/\blanguage-\w[\w-]*\b/, '').strip if lang + attr['class'] = attr['class'].sub(/\blanguage-\S+/, '').strip if lang attr.delete('class') if lang && attr['class'].empty? lang end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/kramdown/converter/html.rb new/lib/kramdown/converter/html.rb --- old/lib/kramdown/converter/html.rb 2015-10-01 21:41:44.000000000 +0200 +++ new/lib/kramdown/converter/html.rb 2016-03-02 18:45:04.000000000 +0100 @@ -92,6 +92,7 @@ def convert_codeblock(el, indent) attr = el.attr.dup lang = extract_code_language!(attr) + lang = el.options[:lang] if el.options.has_key?(:lang) highlighted_code = highlight_code(el.value, lang, :block) if highlighted_code @@ -112,7 +113,7 @@ end end code_attr = {} - code_attr['class'] = "language-#{lang}" if lang + code_attr['class'] = "language-#{lang.sub(/\?.*$/, '')}" if lang "#{' '*indent}<pre#{html_attributes(attr)}><code#{html_attributes(code_attr)}>#{result}\n</code></pre>\n" end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/kramdown/converter/kramdown.rb new/lib/kramdown/converter/kramdown.rb --- old/lib/kramdown/converter/kramdown.rb 2015-10-01 21:41:44.000000000 +0200 +++ new/lib/kramdown/converter/kramdown.rb 2016-03-02 18:45:04.000000000 +0100 @@ -402,7 +402,7 @@ next if el.type == :header && k == 'id' && !v.strip.empty? if v.nil? '' - elsif k == 'class' && !v.empty? + elsif k == 'class' && !v.empty? && !v.index(/[\.#]/) " " + v.split(/\s+/).map {|w| ".#{w}"}.join(" ") elsif k == 'id' && !v.strip.empty? " ##{v}" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/kramdown/converter/math_engine/mathjaxnode.rb new/lib/kramdown/converter/math_engine/mathjaxnode.rb --- old/lib/kramdown/converter/math_engine/mathjaxnode.rb 2015-10-01 21:41:44.000000000 +0200 +++ new/lib/kramdown/converter/math_engine/mathjaxnode.rb 2016-03-02 18:45:04.000000000 +0100 @@ -9,19 +9,27 @@ module Kramdown::Converter::MathEngine - # Uses the MathJax-node library for converting math formulas to MathML. + # Uses the mathjax-node library for converting math formulas to MathML. module MathjaxNode # MathjaxNode is available if this constant is +true+. AVAILABLE = RUBY_VERSION >= '1.9' && begin - npm = %x{npm --global --depth=1 list MathJax-node} + %x{node --version}[1..-2] >= '4.0' + rescue + begin + %x{nodejs --version}[1..-2] >= '4.0' + rescue + false + end + end && begin + npm = %x{npm --global --depth=1 list mathjax-node 2>&1} - unless /MathJax-node@/ === npm.lines.drop(1).join("\n") - npm = %x{npm --depth=1 list MathJax-node} + unless /mathjax-node@/ === npm.lines.drop(1).join("\n") + npm = %x{npm --depth=1 list mathjax-node 2>&1} end - T2MPATH = File.join(npm.lines.first.strip, "node_modules/MathJax-node/bin/tex2mml") - /MathJax-node@/ === npm.lines.drop(1).join("\n") && File.exist?(T2MPATH) + T2MPATH = File.join(npm.lines.first.strip, "node_modules/mathjax-node/bin/tex2mml") + /mathjax-node@/ === npm.lines.drop(1).join("\n") && File.exist?(T2MPATH) rescue false end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/kramdown/converter/syntax_highlighter/coderay.rb new/lib/kramdown/converter/syntax_highlighter/coderay.rb --- old/lib/kramdown/converter/syntax_highlighter/coderay.rb 2015-10-01 21:41:44.000000000 +0200 +++ new/lib/kramdown/converter/syntax_highlighter/coderay.rb 2016-03-02 18:45:04.000000000 +0100 @@ -32,6 +32,9 @@ else nil end + rescue + converter.warning("There was an error using CodeRay: #{$!.message}") + nil end def self.options(converter, type) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/kramdown/document.rb new/lib/kramdown/document.rb --- old/lib/kramdown/document.rb 2015-10-01 21:41:44.000000000 +0200 +++ new/lib/kramdown/document.rb 2016-03-02 18:45:04.000000000 +0100 @@ -29,7 +29,7 @@ # # Kramdown::Document.new(text).to_html # -# For detailed information have a look at the Kramdown::Document class. +# For detailed information have a look at the *\Kramdown::Document* class. # # == License # @@ -100,13 +100,13 @@ # immediately available and the output can be generated. def initialize(source, options = {}) @options = Options.merge(options).freeze - parser = (options[:input] || 'kramdown').to_s + parser = (@options[:input] || 'kramdown').to_s parser = parser[0..0].upcase + parser[1..-1] try_require('parser', parser) if Parser.const_defined?(parser) @root, @warnings = Parser.const_get(parser).parse(source, @options) else - raise Kramdown::Error.new("kramdown has no parser to handle the specified input format: #{options[:input]}") + raise Kramdown::Error.new("kramdown has no parser to handle the specified input format: #{@options[:input]}") end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/kramdown/element.rb new/lib/kramdown/element.rb --- old/lib/kramdown/element.rb 2015-10-01 21:41:44.000000000 +0200 +++ new/lib/kramdown/element.rb 2016-03-02 18:45:04.000000000 +0100 @@ -98,6 +98,10 @@ # # The +value+ field has to contain the content of the code block. # + # The option :lang specifies a highlighting language with possible HTML style options (e.g. + # php?start_inline=1) and should be used instead of a possibly also available language embedded in + # a class name of the form 'language-LANG'. + # # # === :ul # diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/kramdown/parser/gfm.rb new/lib/kramdown/parser/gfm.rb --- old/lib/kramdown/parser/gfm.rb 2015-10-01 21:41:44.000000000 +0200 +++ new/lib/kramdown/parser/gfm.rb 2016-03-02 18:45:04.000000000 +0100 @@ -23,6 +23,10 @@ @block_parsers.delete(current) @block_parsers.insert(i, replacement) end + + i = @span_parsers.index(:escaped_chars) + @span_parsers[i] = :escaped_chars_gfm if i + @span_parsers << :strikethrough_gfm end def parse @@ -57,9 +61,32 @@ ATX_HEADER_START = /^\#{1,6}\s/ define_parser(:atx_header_gfm, ATX_HEADER_START, nil, 'parse_atx_header') - FENCED_CODEBLOCK_MATCH = /^(([~`]){3,})\s*?(\w[\w-]*)?\s*?\n(.*?)^\1\2*\s*?\n/m + FENCED_CODEBLOCK_MATCH = /^(([~`]){3,})\s*?((\S+)(?:\?\S*)?)?\s*?\n(.*?)^\1\2*\s*?\n/m define_parser(:codeblock_fenced_gfm, /^[~`]{3,}/, nil, 'parse_codeblock_fenced') + STRIKETHROUGH_DELIM = /~~/ + STRIKETHROUGH_MATCH = /#{STRIKETHROUGH_DELIM}[^\s~](.*?)[^\s~]#{STRIKETHROUGH_DELIM}/m + define_parser(:strikethrough_gfm, STRIKETHROUGH_MATCH, '~~') + + def parse_strikethrough_gfm + line_number = @src.current_line_number + + @src.pos += @src.matched_size + el = Element.new(:html_element, 'del', {}, :category => :span, :line => line_number) + @tree.children << el + + env = save_env + reset_env(:src => Kramdown::Utils::StringScanner.new(@src.matched[2..-3], line_number), + :text_type => :text) + parse_spans(el) + restore_env(env) + + el + end + + ESCAPED_CHARS_GFM = /\\([\\.*_+`<>()\[\]{}#!:\|"'\$=\-~])/ + define_parser(:escaped_chars_gfm, ESCAPED_CHARS_GFM, '\\\\', :parse_escaped_chars) + end end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/kramdown/parser/html.rb new/lib/kramdown/parser/html.rb --- old/lib/kramdown/parser/html.rb 2015-10-01 21:41:44.000000000 +0200 +++ new/lib/kramdown/parser/html.rb 2016-03-02 18:45:04.000000000 +0100 @@ -53,7 +53,7 @@ # span HTML) and don't appear therefore! # script, textarea HTML_SPAN_ELEMENTS = %w{a abbr acronym b big bdo br button cite code del dfn em i img input - ins kbd label option q rb rbc rp rt rtc ruby samp select small span + ins kbd label mark option q rb rbc rp rt rtc ruby samp select small span strong sub sup tt u var} HTML_BLOCK_ELEMENTS = %w{address article aside applet body blockquote caption col colgroup dd div dl dt fieldset figcaption footer form h1 h2 h3 h4 h5 h6 header hgroup hr html head iframe legend menu @@ -421,7 +421,7 @@ else set_basics(el, :codeblock) if el.children.size == 1 && el.children.first.value == 'code' - value = (el.children.first.attr['class'] || '').scan(/\blanguage-\w[\w-]*\b/).first + value = (el.children.first.attr['class'] || '').scan(/\blanguage-\S+/).first el.attr['class'] = "#{value} #{el.attr['class']}".rstrip if value end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/kramdown/parser/kramdown/autolink.rb new/lib/kramdown/parser/kramdown/autolink.rb --- old/lib/kramdown/parser/kramdown/autolink.rb 2015-10-01 21:41:44.000000000 +0200 +++ new/lib/kramdown/parser/kramdown/autolink.rb 2016-03-02 18:45:04.000000000 +0100 @@ -16,7 +16,7 @@ elsif RUBY_VERSION < '1.9.0' ACHARS = '\w' else - ACHARS = '[[:alnum:]]' + ACHARS = '[[:alnum:]]_' end AUTOLINK_START_STR = "<((mailto|https?|ftps?):.+?|[-.#{ACHARS}]+@[-#{ACHARS}]+(?:\.[-#{ACHARS}]+)*\.[a-z]+)>" AUTOLINK_START = /#{AUTOLINK_START_STR}/u diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/kramdown/parser/kramdown/codeblock.rb new/lib/kramdown/parser/kramdown/codeblock.rb --- old/lib/kramdown/parser/kramdown/codeblock.rb 2015-10-01 21:41:44.000000000 +0200 +++ new/lib/kramdown/parser/kramdown/codeblock.rb 2016-03-02 18:45:04.000000000 +0100 @@ -32,16 +32,19 @@ FENCED_CODEBLOCK_START = /^~{3,}/ - FENCED_CODEBLOCK_MATCH = /^((~){3,})\s*?(\w[\w-]*)?\s*?\n(.*?)^\1\2*\s*?\n/m + FENCED_CODEBLOCK_MATCH = /^((~){3,})\s*?((\S+?)(?:\?\S*)?)?\s*?\n(.*?)^\1\2*\s*?\n/m # Parse the fenced codeblock at the current location. def parse_codeblock_fenced if @src.check(self.class::FENCED_CODEBLOCK_MATCH) start_line_number = @src.current_line_number @src.pos += @src.matched_size - el = new_block_el(:codeblock, @src[4], nil, :location => start_line_number) + el = new_block_el(:codeblock, @src[5], nil, :location => start_line_number) lang = @src[3].to_s.strip - el.attr['class'] = "language-#{lang}" unless lang.empty? + unless lang.empty? + el.options[:lang] = lang + el.attr['class'] = "language-#{@src[4]}" + end @tree.children << el true else diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/kramdown/parser/kramdown/extensions.rb new/lib/kramdown/parser/kramdown/extensions.rb --- old/lib/kramdown/parser/kramdown/extensions.rb 2015-10-01 21:41:44.000000000 +0200 +++ new/lib/kramdown/parser/kramdown/extensions.rb 2016-03-02 18:45:04.000000000 +0100 @@ -128,8 +128,9 @@ ALD_ID_CHARS = /[\w-]/ ALD_ANY_CHARS = /\\\}|[^\}]/ ALD_ID_NAME = /\w#{ALD_ID_CHARS}*/ + ALD_CLASS_NAME = /[^\s\.#]+/ ALD_TYPE_KEY_VALUE_PAIR = /(#{ALD_ID_NAME})=("|')((?:\\\}|\\\2|[^\}\2])*?)\2/ - ALD_TYPE_CLASS_NAME = /\.(-?#{ALD_ID_NAME})/ + ALD_TYPE_CLASS_NAME = /\.(#{ALD_CLASS_NAME})/ ALD_TYPE_ID_NAME = /#([A-Za-z][\w:-]*)/ ALD_TYPE_ID_OR_CLASS = /#{ALD_TYPE_ID_NAME}|#{ALD_TYPE_CLASS_NAME}/ ALD_TYPE_ID_OR_CLASS_MULTI = /((?:#{ALD_TYPE_ID_NAME}|#{ALD_TYPE_CLASS_NAME})+)/ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/kramdown/parser/kramdown/link.rb new/lib/kramdown/parser/kramdown/link.rb --- old/lib/kramdown/parser/kramdown/link.rb 2015-10-01 21:41:44.000000000 +0200 +++ new/lib/kramdown/parser/kramdown/link.rb 2016-03-02 18:45:04.000000000 +0100 @@ -77,7 +77,7 @@ count = count + (@src[1] ? -1 : 1) count - el.children.select {|c| c.type == :img}.size == 0 end - if !found || (link_type == :a && el.children.empty?) + unless found @src.revert_pos(saved_pos) add_text(result) return diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/kramdown/version.rb new/lib/kramdown/version.rb --- old/lib/kramdown/version.rb 2015-10-01 21:41:44.000000000 +0200 +++ new/lib/kramdown/version.rb 2016-03-02 18:45:04.000000000 +0100 @@ -10,6 +10,6 @@ module Kramdown # The kramdown version. - VERSION = '1.9.0' + VERSION = '1.10.0' end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2015-10-01 21:41:43.000000000 +0200 +++ new/metadata 2016-03-02 18:45:04.000000000 +0100 @@ -1,14 +1,14 @@ --- !ruby/object:Gem::Specification name: kramdown version: !ruby/object:Gem::Version - version: 1.9.0 + version: 1.10.0 platform: ruby authors: - Thomas Leitner autorequire: bindir: bin cert_chain: [] -date: 2015-10-01 00:00:00.000000000 Z +date: 2016-03-02 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: minitest @@ -318,6 +318,9 @@ - test/testcases/block/06_codeblock/with_lang_in_fenced_block.html - test/testcases/block/06_codeblock/with_lang_in_fenced_block.options - test/testcases/block/06_codeblock/with_lang_in_fenced_block.text +- test/testcases/block/06_codeblock/with_lang_in_fenced_block_any_char.html +- test/testcases/block/06_codeblock/with_lang_in_fenced_block_any_char.options +- test/testcases/block/06_codeblock/with_lang_in_fenced_block_any_char.text - test/testcases/block/06_codeblock/with_lang_in_fenced_block_name_with_dash.html - test/testcases/block/06_codeblock/with_lang_in_fenced_block_name_with_dash.options - test/testcases/block/06_codeblock/with_lang_in_fenced_block_name_with_dash.text @@ -600,6 +603,8 @@ - test/testcases/span/05_html/invalid.text - test/testcases/span/05_html/link_with_mailto.html - test/testcases/span/05_html/link_with_mailto.text +- test/testcases/span/05_html/mark_element.html +- test/testcases/span/05_html/mark_element.text - test/testcases/span/05_html/markdown_attr.html - test/testcases/span/05_html/markdown_attr.text - test/testcases/span/05_html/normal.html @@ -673,6 +678,9 @@ - test/testcases_gfm/hard_line_breaks_off.html - test/testcases_gfm/hard_line_breaks_off.options - test/testcases_gfm/hard_line_breaks_off.text +- test/testcases_gfm/strikethrough.html +- test/testcases_gfm/strikethrough.html.19 +- test/testcases_gfm/strikethrough.text - test/testcases_gfm/two_para_hard_line_breaks.html - test/testcases_gfm/two_para_hard_line_breaks.text homepage: http://kramdown.gettalong.org @@ -697,7 +705,7 @@ version: '0' requirements: [] rubyforge_project: -rubygems_version: 2.4.6 +rubygems_version: 2.5.1 signing_key: specification_version: 4 summary: kramdown is a fast, pure-Ruby Markdown-superset converter. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/test_files.rb new/test/test_files.rb --- old/test/test_files.rb 2015-10-01 21:41:44.000000000 +0200 +++ new/test/test_files.rb 2016-03-02 18:45:04.000000000 +0100 @@ -64,6 +64,7 @@ 'test/testcases/span/math/mathjaxnode.html', # bc of tidy 'test/testcases/block/15_math/mathjax_preview.html', # bc of mathjax preview 'test/testcases/block/15_math/mathjax_preview_simple.html', # bc of mathjax preview + 'test/testcases/span/05_html/mark_element.html', # bc of tidy ].compact EXCLUDE_HTML_TEXT_FILES = ['test/testcases/block/09_html/parse_as_span.htmlinput', 'test/testcases/block/09_html/parse_as_raw.htmlinput', @@ -117,6 +118,7 @@ 'test/testcases/span/01_link/empty_title.text', 'test/testcases/span/04_footnote/markers.text', # bc of footnote in header 'test/testcases/block/06_codeblock/with_lang_in_fenced_block_name_with_dash.text', + 'test/testcases/block/06_codeblock/with_lang_in_fenced_block_any_char.text', ].compact Dir[File.dirname(__FILE__) + '/testcases/**/*.text'].each do |text_file| next if EXCLUDE_LATEX_FILES.any? {|f| text_file =~ /#{f}$/} @@ -156,7 +158,7 @@ ('test/testcases/block/04_header/with_auto_ids.text' if RUBY_VERSION <= '1.8.6'), # bc of dep stringex not working ('test/testcases/span/03_codespan/rouge/simple.text' if RUBY_VERSION < '2.0'), #bc of rouge ('test/testcases/span/03_codespan/rouge/disabled.text' if RUBY_VERSION < '2.0'), #bc of rouge - ('test/testcases/block/06_codeblock/rouge/simple.text' if RUBY_VERSION < '2.0'), #bc of rouge + 'test/testcases/block/06_codeblock/rouge/simple.text', 'test/testcases/block/15_math/ritex.text', # bc of tidy 'test/testcases/span/math/ritex.text', # bc of tidy 'test/testcases/block/15_math/itex2mml.text', # bc of tidy @@ -166,6 +168,7 @@ 'test/testcases/block/15_math/mathjaxnode_semantics.text', # bc of tidy 'test/testcases/span/math/mathjaxnode.text', # bc of tidy 'test/testcases/span/01_link/link_defs_with_ial.text', # bc of attribute ordering + 'test/testcases/span/05_html/mark_element.text', # bc of tidy ].compact Dir[File.dirname(__FILE__) + '/testcases/**/*.text'].each do |text_file| next if EXCLUDE_TEXT_FILES.any? {|f| text_file =~ /#{f}$/} @@ -215,6 +218,7 @@ 'test/testcases/block/15_math/mathjax_preview.html', # bc of mathjax preview 'test/testcases/block/15_math/mathjax_preview_simple.html', # bc of mathjax preview 'test/testcases/span/01_link/link_defs_with_ial.html', # bc of attribute ordering + 'test/testcases/span/05_html/mark_element.html', # bc of tidy ].compact Dir[File.dirname(__FILE__) + '/testcases/**/*.{html,html.19}'].each do |html_file| next if EXCLUDE_HTML_KD_FILES.any? {|f| html_file =~ /#{f}(\.19)?$/} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/testcases/block/06_codeblock/rouge/simple.html new/test/testcases/block/06_codeblock/rouge/simple.html --- old/test/testcases/block/06_codeblock/rouge/simple.html 2015-10-01 21:41:44.000000000 +0200 +++ new/test/testcases/block/06_codeblock/rouge/simple.html 2016-03-02 18:45:04.000000000 +0100 @@ -4,3 +4,7 @@ <div class="highlighter-rouge"><pre class="highlight"><code><span class="nt"><a></span>href<span class="nt"></a></span> </code></pre> </div> + +<div class="highlighter-rouge"><pre class="highlight"><code><span class="nv">$foo</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">Bar</span><span class="p">;</span> +</code></pre> +</div> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/testcases/block/06_codeblock/rouge/simple.text new/test/testcases/block/06_codeblock/rouge/simple.text --- old/test/testcases/block/06_codeblock/rouge/simple.text 2015-10-01 21:41:44.000000000 +0200 +++ new/test/testcases/block/06_codeblock/rouge/simple.text 2016-03-02 18:45:04.000000000 +0100 @@ -2,3 +2,8 @@ ^ <a>href</a> {: .language-html} + + +~~~ php?start_inline=1 +$foo = new Bar; +~~~ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/testcases/block/06_codeblock/with_lang_in_fenced_block_any_char.html new/test/testcases/block/06_codeblock/with_lang_in_fenced_block_any_char.html --- old/test/testcases/block/06_codeblock/with_lang_in_fenced_block_any_char.html 1970-01-01 01:00:00.000000000 +0100 +++ new/test/testcases/block/06_codeblock/with_lang_in_fenced_block_any_char.html 2016-03-02 18:45:04.000000000 +0100 @@ -0,0 +1,8 @@ +<pre><code class="language-asn.1">text +</code></pre> + +<pre><code class="language-asn#w1">text +</code></pre> + +<pre><code class="language-русский">text +</code></pre> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/testcases/block/06_codeblock/with_lang_in_fenced_block_any_char.options new/test/testcases/block/06_codeblock/with_lang_in_fenced_block_any_char.options --- old/test/testcases/block/06_codeblock/with_lang_in_fenced_block_any_char.options 1970-01-01 01:00:00.000000000 +0100 +++ new/test/testcases/block/06_codeblock/with_lang_in_fenced_block_any_char.options 2016-03-02 18:45:04.000000000 +0100 @@ -0,0 +1,2 @@ +:enable_coderay: false + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/testcases/block/06_codeblock/with_lang_in_fenced_block_any_char.text new/test/testcases/block/06_codeblock/with_lang_in_fenced_block_any_char.text --- old/test/testcases/block/06_codeblock/with_lang_in_fenced_block_any_char.text 1970-01-01 01:00:00.000000000 +0100 +++ new/test/testcases/block/06_codeblock/with_lang_in_fenced_block_any_char.text 2016-03-02 18:45:04.000000000 +0100 @@ -0,0 +1,11 @@ +~~~ asn.1 +text +~~~ + +~~~ asn#w1 +text +~~~ + +~~~ русский +text +~~~ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/testcases/span/01_link/empty.html new/test/testcases/span/01_link/empty.html --- old/test/testcases/span/01_link/empty.html 2015-10-01 21:41:44.000000000 +0200 +++ new/test/testcases/span/01_link/empty.html 2016-03-02 18:45:04.000000000 +0100 @@ -2,4 +2,4 @@ <p>This is [][] empty.</p> -<p>This is [](test.html) empty.</p> +<p>This is <a href="test.html"></a> empty.</p> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/testcases/span/05_html/mark_element.html new/test/testcases/span/05_html/mark_element.html --- old/test/testcases/span/05_html/mark_element.html 1970-01-01 01:00:00.000000000 +0100 +++ new/test/testcases/span/05_html/mark_element.html 2016-03-02 18:45:04.000000000 +0100 @@ -0,0 +1,3 @@ +<p>Lorem ipsum.</p> + +<p><mark>Test</mark></p> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/testcases/span/05_html/mark_element.text new/test/testcases/span/05_html/mark_element.text --- old/test/testcases/span/05_html/mark_element.text 1970-01-01 01:00:00.000000000 +0100 +++ new/test/testcases/span/05_html/mark_element.text 2016-03-02 18:45:04.000000000 +0100 @@ -0,0 +1,3 @@ +Lorem ipsum. + +<mark>Test</mark> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/testcases/span/autolinks/url_links.html new/test/testcases/span/autolinks/url_links.html --- old/test/testcases/span/autolinks/url_links.html 2015-10-01 21:41:44.000000000 +0200 +++ new/test/testcases/span/autolinks/url_links.html 2016-03-02 18:45:04.000000000 +0100 @@ -1,6 +1,7 @@ <p>This should be a <a href="http://www.example.com/">http://www.example.com/</a> link. This should be a <a href="mailto:john.doe@example.com">john.doe@example.com</a> link. As should <a href="mailto:john.doe@example.com">john.doe@example.com</a> this. +As should <a href="mailto:john_doe@example.com">john_doe@example.com</a> this. As should <a href="mailto:CSS@example.com"><abbr title="Cascading">CSS</abbr>@example.com</a> this. Another ampersand <a href="http://www.example.com/?doit&x=y">http://www.example.com/?doit&x=y</a> link. More entities <a href="http://www.example.com/?doit&x="y&z=y">http://www.example.com/?doit&x="y&z=y</a>.</p> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/testcases/span/autolinks/url_links.text new/test/testcases/span/autolinks/url_links.text --- old/test/testcases/span/autolinks/url_links.text 2015-10-01 21:41:44.000000000 +0200 +++ new/test/testcases/span/autolinks/url_links.text 2016-03-02 18:45:04.000000000 +0100 @@ -1,6 +1,7 @@ This should be a <http://www.example.com/> link. This should be a <mailto:[email protected]> link. As should <[email protected]> this. +As should <[email protected]> this. As should <[email protected]> this. Another ampersand <http://www.example.com/?doit&x=y> link. More entities <http://www.example.com/?doit&x="y&z=y>. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/testcases_gfm/strikethrough.html new/test/testcases_gfm/strikethrough.html --- old/test/testcases_gfm/strikethrough.html 1970-01-01 01:00:00.000000000 +0100 +++ new/test/testcases_gfm/strikethrough.html 2016-03-02 18:45:04.000000000 +0100 @@ -0,0 +1,27 @@ +<p><del>This is a test</del></p> + +<p>~<del>This is another test</del>~</p> + +<p><del>This is yet another test</del>~</p> + +<p>~~ This is a test of it NOT working ~~</p> + +<p>~~<br /> +This<br /> +is<br /> +a<br /> +<strong>multiline</strong><br /> +test<br /> +~~</p> + +<p>This is an <del><em>inline</em> <strong>strikethrough</strong></del> test</p> + +<p>This is an ~~escaped~~ strikethrough.</p> + +<p>This is a <del>strikethrough with a ~ in the middle</del></p> + +<p>I <del>don’t even</del>~ have an extra tilde.</p> + +<p>This should ~~not be struck.</p> + +<p>This <del>is a complex <em>strike</em> through *test ~~with nesting</del> involved* here~~.</p> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/testcases_gfm/strikethrough.html.19 new/test/testcases_gfm/strikethrough.html.19 --- old/test/testcases_gfm/strikethrough.html.19 1970-01-01 01:00:00.000000000 +0100 +++ new/test/testcases_gfm/strikethrough.html.19 2016-03-02 18:45:04.000000000 +0100 @@ -0,0 +1,27 @@ +<p><del>This is a test</del></p> + +<p>~<del>This is another test</del>~</p> + +<p><del>This is yet another test</del>~</p> + +<p>~~ This is a test of it NOT working ~~</p> + +<p>~~<br /> +This<br /> +is<br /> +a<br /> +<strong>multiline</strong><br /> +test<br /> +~~</p> + +<p>This is an <del><em>inline</em> <strong>strikethrough</strong></del> test</p> + +<p>This is an ~~escaped~~ strikethrough.</p> + +<p>This is a <del>strikethrough with a ~ in the middle</del></p> + +<p>I <del>don’t even</del>~ have an extra tilde.</p> + +<p>This should ~~not be struck.</p> + +<p>This <del>is a complex <em>strike</em> through *test ~~with nesting</del> involved* here~~.</p> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/testcases_gfm/strikethrough.text new/test/testcases_gfm/strikethrough.text --- old/test/testcases_gfm/strikethrough.text 1970-01-01 01:00:00.000000000 +0100 +++ new/test/testcases_gfm/strikethrough.text 2016-03-02 18:45:04.000000000 +0100 @@ -0,0 +1,27 @@ +~~This is a test~~ + +~~~This is another test~~~ + +~~This is yet another test~~~ + +~~ This is a test of it NOT working ~~ + +~~ +This +is +a +**multiline** +test +~~ + +This is an ~~_inline_ **strikethrough**~~ test + +This is an \~~escaped~~ strikethrough. + +This is a ~~strikethrough with a ~ in the middle~~ + +I ~~don't even~~~ have an extra tilde. + +This should ~~not be struck. + +This ~~is a complex *strike* through *test ~~with nesting~~ involved* here~~.
