From 5571dc766e2143e39762ff0b47c41d1c2e154f4c Mon Sep 17 00:00:00 2001 From: Benjamin Sanders Date: Sat, 11 Oct 2025 10:34:24 -0400 Subject: Vendor bundled gems for deployment --- .../gems/kramdown-parser-gfm-1.1.0/CONTRIBUTERS | 4 + .../3.4.0/gems/kramdown-parser-gfm-1.1.0/COPYING | 21 ++ .../3.4.0/gems/kramdown-parser-gfm-1.1.0/VERSION | 1 + .../lib/kramdown-parser-gfm.rb | 10 + .../lib/kramdown/parser/gfm.rb | 220 +++++++++++++++++++++ .../lib/kramdown/parser/gfm/options.rb | 60 ++++++ .../kramdown-parser-gfm-1.1.0/test/test_files.rb | 36 ++++ .../test/testcases/atx_header.html | 3 + .../test/testcases/atx_header.text | 3 + .../test/testcases/backticks_syntax.html | 14 ++ .../test/testcases/backticks_syntax.options | 1 + .../test/testcases/backticks_syntax.text | 19 ++ .../test/testcases/codeblock_fenced.html | 20 ++ .../test/testcases/codeblock_fenced.options | 1 + .../test/testcases/codeblock_fenced.text | 21 ++ .../test/testcases/hard_line_breaks.html | 3 + .../test/testcases/hard_line_breaks.text | 3 + .../test/testcases/hard_line_breaks_off.html | 5 + .../test/testcases/hard_line_breaks_off.options | 1 + .../test/testcases/hard_line_breaks_off.text | 5 + .../test/testcases/header_ids.html | 27 +++ .../test/testcases/header_ids.options | 1 + .../test/testcases/header_ids.text | 27 +++ .../test/testcases/header_ids_with_prefix.html | 3 + .../test/testcases/header_ids_with_prefix.options | 2 + .../test/testcases/header_ids_with_prefix.text | 3 + .../test/testcases/no_typographic.html | 3 + .../test/testcases/no_typographic.options | 1 + .../test/testcases/no_typographic.text | 3 + .../test/testcases/paragraph_end-disabled.html | 31 +++ .../test/testcases/paragraph_end-disabled.options | 1 + .../test/testcases/paragraph_end-disabled.text | 27 +++ .../test/testcases/paragraph_end.html | 38 ++++ .../test/testcases/paragraph_end.text | 27 +++ .../test/testcases/strikethrough.html | 33 ++++ .../test/testcases/strikethrough.text | 33 ++++ .../test/testcases/task_list.html | 40 ++++ .../test/testcases/task_list.text | 26 +++ .../test/testcases/two_para_hard_line_breaks.html | 4 + .../test/testcases/two_para_hard_line_breaks.text | 4 + 40 files changed, 785 insertions(+) create mode 100644 vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/CONTRIBUTERS create mode 100644 vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/COPYING create mode 100644 vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/VERSION create mode 100644 vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/lib/kramdown-parser-gfm.rb create mode 100644 vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/lib/kramdown/parser/gfm.rb create mode 100644 vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/lib/kramdown/parser/gfm/options.rb create mode 100644 vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/test_files.rb create mode 100644 vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/atx_header.html create mode 100644 vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/atx_header.text create mode 100644 vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/backticks_syntax.html create mode 100644 vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/backticks_syntax.options create mode 100644 vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/backticks_syntax.text create mode 100644 vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/codeblock_fenced.html create mode 100644 vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/codeblock_fenced.options create mode 100644 vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/codeblock_fenced.text create mode 100644 vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/hard_line_breaks.html create mode 100644 vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/hard_line_breaks.text create mode 100644 vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/hard_line_breaks_off.html create mode 100644 vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/hard_line_breaks_off.options create mode 100644 vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/hard_line_breaks_off.text create mode 100644 vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/header_ids.html create mode 100644 vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/header_ids.options create mode 100644 vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/header_ids.text create mode 100644 vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/header_ids_with_prefix.html create mode 100644 vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/header_ids_with_prefix.options create mode 100644 vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/header_ids_with_prefix.text create mode 100644 vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/no_typographic.html create mode 100644 vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/no_typographic.options create mode 100644 vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/no_typographic.text create mode 100644 vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/paragraph_end-disabled.html create mode 100644 vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/paragraph_end-disabled.options create mode 100644 vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/paragraph_end-disabled.text create mode 100644 vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/paragraph_end.html create mode 100644 vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/paragraph_end.text create mode 100644 vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/strikethrough.html create mode 100644 vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/strikethrough.text create mode 100644 vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/task_list.html create mode 100644 vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/task_list.text create mode 100644 vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/two_para_hard_line_breaks.html create mode 100644 vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/two_para_hard_line_breaks.text (limited to 'vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0') diff --git a/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/CONTRIBUTERS b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/CONTRIBUTERS new file mode 100644 index 0000000..262ad48 --- /dev/null +++ b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/CONTRIBUTERS @@ -0,0 +1,4 @@ +Count Name +======= ==== + 15 Ashwin Maroli + 5 Thomas Leitner diff --git a/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/COPYING b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/COPYING new file mode 100644 index 0000000..417fb2c --- /dev/null +++ b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/COPYING @@ -0,0 +1,21 @@ +kramdown-parser-gfm +Copyright (C) 2019 Thomas Leitner + +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be included +in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/VERSION b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/VERSION new file mode 100644 index 0000000..9084fa2 --- /dev/null +++ b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/VERSION @@ -0,0 +1 @@ +1.1.0 diff --git a/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/lib/kramdown-parser-gfm.rb b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/lib/kramdown-parser-gfm.rb new file mode 100644 index 0000000..3861bca --- /dev/null +++ b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/lib/kramdown-parser-gfm.rb @@ -0,0 +1,10 @@ +# -*- coding: utf-8; frozen_string_literal: true -*- +# +#-- +# Copyright (C) 2019 Thomas Leitner +# +# This file is part of kramdown-parser-gfm which is licensed under the MIT. +#++ +# + +require_relative 'kramdown/parser/gfm' diff --git a/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/lib/kramdown/parser/gfm.rb b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/lib/kramdown/parser/gfm.rb new file mode 100644 index 0000000..c803e12 --- /dev/null +++ b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/lib/kramdown/parser/gfm.rb @@ -0,0 +1,220 @@ +# -*- coding: utf-8; frozen_string_literal: true -*- +# +#-- +# Copyright (C) 2019 Thomas Leitner +# +# This file is part of kramdown-parser-gfm which is licensed under the MIT. +#++ +# + +require 'kramdown/options' +require 'kramdown/parser/kramdown' + +require_relative 'gfm/options' + +module Kramdown + module Parser + + # This class provides a parser implementation for the GFM dialect of Markdown. + class GFM < Kramdown::Parser::Kramdown + + VERSION = '1.1.0' + + attr_reader :paragraph_end + + def initialize(source, options) + super + @options[:auto_id_stripping] = true + @id_counter = Hash.new(-1) + + @span_parsers.delete(:line_break) if @options[:hard_wrap] + @span_parsers.delete(:typographic_syms) if @options[:gfm_quirks].include?(:no_auto_typographic) + + if @options[:gfm_quirks].include?(:paragraph_end) + atx_header_parser = :atx_header_gfm_quirk + @paragraph_end = self.class::PARAGRAPH_END_GFM + else + atx_header_parser = :atx_header_gfm + @paragraph_end = self.class::PARAGRAPH_END + end + + {codeblock_fenced: :codeblock_fenced_gfm, + atx_header: atx_header_parser}.each do |current, replacement| + i = @block_parsers.index(current) + @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 + + @hard_line_break = "#{@options[:hard_wrap] ? '' : '\\'}\n" + end + + def parse + super + update_elements(@root) + end + + def update_elements(element) + element.children.map! do |child| + if child.type == :text && child.value.include?(@hard_line_break) + update_text_type(element, child) + elsif child.type == :html_element + child + elsif child.type == :header && @options[:auto_ids] && !child.attr.key?('id') + child.attr['id'] = generate_gfm_header_id(child.options[:raw_text]) + child + else + update_elements(child) + child + end + end.flatten! + end + + # Update the raw text for automatic ID generation. + def update_raw_text(item) + raw_text = +'' + + append_text = lambda do |child| + case child.type + when :text, :codespan, :math + raw_text << child.value + when :entity + raw_text << child.value.char + when :smart_quote + raw_text << ::Kramdown::Utils::Entities.entity(child.value.to_s).char + when :typographic_sym + raw_text << case child.value + when :laquo_space + "« " + when :raquo_space + " »" + else + ::Kramdown::Utils::Entities.entity(child.value.to_s).char + end + else + child.children.each { |c| append_text.call(c) } + end + end + + append_text.call(item) + item.options[:raw_text] = raw_text + end + + NON_WORD_RE = /[^\p{Word}\- \t]/.freeze + + def generate_gfm_header_id(text) + result = text.downcase + result.gsub!(NON_WORD_RE, '') + result.tr!(" \t", '-') + + @id_counter[result] += 1 + counter_result = @id_counter[result] + result << "-#{counter_result}" if counter_result > 0 + + @options[:auto_id_prefix] + result + end + + ATX_HEADER_START = /^(?\#{1,6})[\t ]+(?.*)\n/.freeze + define_parser(:atx_header_gfm, ATX_HEADER_START, nil, 'parse_atx_header') + define_parser(:atx_header_gfm_quirk, ATX_HEADER_START) + + # Copied from kramdown/parser/kramdown/header.rb, removed the first line + def parse_atx_header_gfm_quirk + text, id = parse_header_contents + text.sub!(/[\t ]#+\z/, '') && text.rstrip! + return false if text.empty? + + add_header(@src["level"].length, text, id) + true + end + + FENCED_CODEBLOCK_START = /^[ ]{0,3}[~`]{3,}/.freeze + FENCED_CODEBLOCK_MATCH = /^[ ]{0,3}(([~`]){3,})\s*?((\S+?)(?:\?\S*)?)?\s*?\n(.*?)^[ ]{0,3}\1\2*\s*?\n/m.freeze + define_parser(:codeblock_fenced_gfm, FENCED_CODEBLOCK_START, nil, 'parse_codeblock_fenced') + + STRIKETHROUGH_DELIM = /~~/.freeze + STRIKETHROUGH_MATCH = /#{STRIKETHROUGH_DELIM}(?!\s|~).*?[^\s~]#{STRIKETHROUGH_DELIM}/m.freeze + 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 + + LIST_TYPES = [:ul, :ol].freeze + + # To handle task-lists we override the parse method for lists, converting matching text into + # checkbox input elements where necessary (as well as applying classes to the ul/ol and li + # elements). + def parse_list + super + current_list = @tree.children.select { |element| LIST_TYPES.include?(element.type) }.last + + is_tasklist = false + box_unchecked = '' + box_checked = '' + + current_list.children.each do |li| + list_items = li.children + next unless !list_items.empty? && list_items[0].type == :p + + # li -> p -> raw_text + descendant = list_items[0].children[0].value + checked = descendant.gsub!(/\A\s*\[ \]\s+/, box_unchecked) + unchecked = descendant.gsub!(/\A\s*\[x\]\s+/i, box_checked) + is_tasklist ||= checked || unchecked + + li.attr['class'] = 'task-list-item' if is_tasklist + end + + current_list.attr['class'] = 'task-list' if is_tasklist + + true + end + + ESCAPED_CHARS_GFM = /\\([\\.*_+`<>()\[\]{}#!:\|"'\$=\-~])/.freeze + define_parser(:escaped_chars_gfm, ESCAPED_CHARS_GFM, '\\\\', :parse_escaped_chars) + + PARAGRAPH_END_GFM = Regexp.union( + LAZY_END, LIST_START, ATX_HEADER_START, DEFINITION_LIST_START, + BLOCKQUOTE_START, FENCED_CODEBLOCK_START + ) + + private + + def update_text_type(element, child) + children = [] + lines = child.value.split(@hard_line_break, -1) + omit_trailing_br = (lines[-1].empty? && Kramdown::Element.category(element) == :block && + element.children[-1] == child) + + lines.each_with_index do |line, index| + new_element_options = {location: child.options[:location] + index} + children << Element.new(:text, (index > 0 ? "\n#{line}" : line), nil, new_element_options) + + if index < lines.size - 2 || (index == lines.size - 2 && !omit_trailing_br) + children << Element.new(:br, nil, nil, new_element_options) + end + end + + children + end + + end + end +end diff --git a/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/lib/kramdown/parser/gfm/options.rb b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/lib/kramdown/parser/gfm/options.rb new file mode 100644 index 0000000..2fcd787 --- /dev/null +++ b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/lib/kramdown/parser/gfm/options.rb @@ -0,0 +1,60 @@ +# -*- coding: utf-8; frozen_string_literal: true -*- +# +#-- +# Copyright (C) 2019 Thomas Leitner +# +# This file is part of kramdown-parser-gfm which is licensed under the MIT. +#++ +# + +module Kramdown + module Options + + define(:hard_wrap, Boolean, true, <<~EOF) + Interprets line breaks literally + + Insert HTML `
` tags inside paragraphs where the original Markdown + document had newlines (by default, Markdown ignores these newlines). + + Default: true + Used by: GFM parser + EOF + + define(:gfm_quirks, Object, [:paragraph_end], <<~EOF) do |val| + Enables a set of GFM specific quirks + + The way how GFM is transformed on Github often differs from the way + kramdown does things. Many of these differences are negligible but + others are not. + + This option allows one to enable/disable certain GFM quirks, i.e. ways + in which GFM parsing differs from kramdown parsing. + + The value has to be a list of quirk names that should be enabled, + separated by commas. Possible names are: + + * paragraph_end + + Disables the kramdown restriction that at least one blank line has to + be used after a paragraph before a new block element can be started. + + Note that if this quirk is used, lazy line wrapping does not fully + work anymore! + + * no_auto_typographic + + Disables automatic conversion of some characters into their + corresponding typographic symbols (like `--` to em-dash etc). + This helps to achieve results closer to what GitHub Flavored + Markdown produces. + + Default: paragraph_end + Used by: GFM parser + EOF + val = simple_array_validator(val, :gfm_quirks) + val.map! { |v| str_to_sym(v.to_s) } + val + end + + end +end diff --git a/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/test_files.rb b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/test_files.rb new file mode 100644 index 0000000..664f13d --- /dev/null +++ b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/test_files.rb @@ -0,0 +1,36 @@ +# -*- coding: utf-8 -*- +# +#-- +# Copyright (C) 2019 Thomas Leitner +# +# This file is part of kramdown-parser-gfm which is licensed under the MIT. +#++ +# + +require 'minitest/autorun' +require 'kramdown' +require 'kramdown/parser/gfm' +require 'yaml' +require 'tmpdir' + +Encoding.default_external = 'utf-8' + +class TestFiles < Minitest::Test + + # Generate test methods for gfm-to-html conversion + Dir[__dir__ + '/testcases/**/*.text'].each do |text_file| + basename = text_file.sub(/\.text$/, '') + + html_file = basename + '.html' + next unless File.exist?(html_file) + + define_method('test_gfm_' + File.basename(text_file, '.*') + '_to_html') do + opts_file = basename + '.options' + opts_file = File.join(File.dirname(html_file), 'options') if !File.exist?(opts_file) + options = File.exist?(opts_file) ? YAML::load(File.read(opts_file)) : {auto_ids: false, footnote_nr: 1} + doc = Kramdown::Document.new(File.read(text_file), options.merge(input: 'GFM')) + assert_equal(File.read(html_file), doc.to_html) + end + end + +end diff --git a/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/atx_header.html b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/atx_header.html new file mode 100644 index 0000000..776d7a1 --- /dev/null +++ b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/atx_header.html @@ -0,0 +1,3 @@ +

header

+ +

#no header

diff --git a/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/atx_header.text b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/atx_header.text new file mode 100644 index 0000000..5e70e2b --- /dev/null +++ b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/atx_header.text @@ -0,0 +1,3 @@ +# header + +#no header diff --git a/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/backticks_syntax.html b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/backticks_syntax.html new file mode 100644 index 0000000..305f4c5 --- /dev/null +++ b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/backticks_syntax.html @@ -0,0 +1,14 @@ +
Three backticks
+
+ +
Four backticks
+
+ +
Unbalanced bottom heavy
+
+ +
language no space
+
+ +
language with space
+
diff --git a/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/backticks_syntax.options b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/backticks_syntax.options new file mode 100644 index 0000000..72e9bc1 --- /dev/null +++ b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/backticks_syntax.options @@ -0,0 +1 @@ +:enable_coderay: false diff --git a/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/backticks_syntax.text b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/backticks_syntax.text new file mode 100644 index 0000000..fb5c611 --- /dev/null +++ b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/backticks_syntax.text @@ -0,0 +1,19 @@ +``` +Three backticks +``` + +```` +Four backticks +```` + +``` +Unbalanced bottom heavy +`````` + +````ruby +language no space +```` + +```` ruby +language with space +```` diff --git a/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/codeblock_fenced.html b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/codeblock_fenced.html new file mode 100644 index 0000000..5ededae --- /dev/null +++ b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/codeblock_fenced.html @@ -0,0 +1,20 @@ +

normal

+ +
require 'kramdown'
+
+Kramdown::Document.new(text).to_html
+
+ +

indent with tab

+ +
```ruby
+require 'kramdown'
+
+Kramdown::Document.new(text).to_html
+```
+
+ +

indent with 2 spaces

+ +
  console.log("hello");
+
diff --git a/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/codeblock_fenced.options b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/codeblock_fenced.options new file mode 100644 index 0000000..72e9bc1 --- /dev/null +++ b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/codeblock_fenced.options @@ -0,0 +1 @@ +:enable_coderay: false diff --git a/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/codeblock_fenced.text b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/codeblock_fenced.text new file mode 100644 index 0000000..5e3e192 --- /dev/null +++ b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/codeblock_fenced.text @@ -0,0 +1,21 @@ +normal + +```ruby +require 'kramdown' + +Kramdown::Document.new(text).to_html +``` + +indent with tab + + ```ruby + require 'kramdown' + + Kramdown::Document.new(text).to_html + ``` + +indent with 2 spaces + + ```js + console.log("hello"); + ``` diff --git a/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/hard_line_breaks.html b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/hard_line_breaks.html new file mode 100644 index 0000000..1dfb2f0 --- /dev/null +++ b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/hard_line_breaks.html @@ -0,0 +1,3 @@ +

one
+two
+three

diff --git a/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/hard_line_breaks.text b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/hard_line_breaks.text new file mode 100644 index 0000000..f1287bd --- /dev/null +++ b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/hard_line_breaks.text @@ -0,0 +1,3 @@ +one +_two_ +three diff --git a/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/hard_line_breaks_off.html b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/hard_line_breaks_off.html new file mode 100644 index 0000000..4b34619 --- /dev/null +++ b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/hard_line_breaks_off.html @@ -0,0 +1,5 @@ +

This is just a normal paragraph.
+Containing a manual line break above.

+ +

It was the best of times,
+it was the worst of times.

diff --git a/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/hard_line_breaks_off.options b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/hard_line_breaks_off.options new file mode 100644 index 0000000..f2da683 --- /dev/null +++ b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/hard_line_breaks_off.options @@ -0,0 +1 @@ +:hard_wrap: false diff --git a/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/hard_line_breaks_off.text b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/hard_line_breaks_off.text new file mode 100644 index 0000000..29e1d48 --- /dev/null +++ b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/hard_line_breaks_off.text @@ -0,0 +1,5 @@ +This is just a normal paragraph. +Containing a manual line break above. + +It was the best of times,\ +it was the worst of times. diff --git a/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/header_ids.html b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/header_ids.html new file mode 100644 index 0000000..b45fe8f --- /dev/null +++ b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/header_ids.html @@ -0,0 +1,27 @@ +

test

+ +

variable_name

+ +

abc def öúß

+ +

192 abc 192

+ +

;.;;

+ +

variable_name

+ +

variable_name

+ +

;;

+ +

before after tab

+ +

with code

+ +

with  ä space

+ +

With “smart” quotes

+ +

with — « typographic » … symbols

+ +

with

diff --git a/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/header_ids.options b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/header_ids.options new file mode 100644 index 0000000..8776b55 --- /dev/null +++ b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/header_ids.options @@ -0,0 +1 @@ +:auto_ids: true diff --git a/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/header_ids.text b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/header_ids.text new file mode 100644 index 0000000..0a89c0b --- /dev/null +++ b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/header_ids.text @@ -0,0 +1,27 @@ +### test {#myid} + +### variable_name + +### abc def öúß + +### 192 abc 192 + +### ;.;; + +### variable_name + +### variable_name + +### ;; + +### before after tab + +### with `code` + +### with  ä space + +### With "smart" quotes + +### with --- << typographic >> ... symbols + +### with $$m=5$$ diff --git a/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/header_ids_with_prefix.html b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/header_ids_with_prefix.html new file mode 100644 index 0000000..4aab072 --- /dev/null +++ b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/header_ids_with_prefix.html @@ -0,0 +1,3 @@ +

Header 1

+ +

123

diff --git a/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/header_ids_with_prefix.options b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/header_ids_with_prefix.options new file mode 100644 index 0000000..f37255d --- /dev/null +++ b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/header_ids_with_prefix.options @@ -0,0 +1,2 @@ +:auto_ids: true +:auto_id_prefix: hallo- diff --git a/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/header_ids_with_prefix.text b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/header_ids_with_prefix.text new file mode 100644 index 0000000..acf09fe --- /dev/null +++ b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/header_ids_with_prefix.text @@ -0,0 +1,3 @@ +# Header 1 + +# 123 diff --git a/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/no_typographic.html b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/no_typographic.html new file mode 100644 index 0000000..beecad4 --- /dev/null +++ b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/no_typographic.html @@ -0,0 +1,3 @@ +

Header with --ndash

+ +

with --- << typographic >> ... symbols

diff --git a/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/no_typographic.options b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/no_typographic.options new file mode 100644 index 0000000..4a83cd1 --- /dev/null +++ b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/no_typographic.options @@ -0,0 +1 @@ +:gfm_quirks: [no_auto_typographic] diff --git a/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/no_typographic.text b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/no_typographic.text new file mode 100644 index 0000000..f579651 --- /dev/null +++ b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/no_typographic.text @@ -0,0 +1,3 @@ +### Header with --ndash + +### with --- << typographic >> ... symbols diff --git a/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/paragraph_end-disabled.html b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/paragraph_end-disabled.html new file mode 100644 index 0000000..41dfb3a --- /dev/null +++ b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/paragraph_end-disabled.html @@ -0,0 +1,31 @@ +

A
+ - b

+ +

This is a list
+- or is it

+ +

blockquote
+> text

+ +

header
+# text

+ +

codeblock fenced
+ +puts hello world +

+ +
    +
  • +

    level 1
    +some text

    + +

    begin level 2
    +* level 2
    +* level 2

    +
  • +
+ +

h1

+

## h2
+### h3

diff --git a/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/paragraph_end-disabled.options b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/paragraph_end-disabled.options new file mode 100644 index 0000000..704f643 --- /dev/null +++ b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/paragraph_end-disabled.options @@ -0,0 +1 @@ +:gfm_quirks: [] diff --git a/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/paragraph_end-disabled.text b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/paragraph_end-disabled.text new file mode 100644 index 0000000..4e09e03 --- /dev/null +++ b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/paragraph_end-disabled.text @@ -0,0 +1,27 @@ +A + - b + +This is a list +- or is it + +blockquote +> text + +header +# text + +codeblock fenced +``` +puts hello world +``` + +* level 1 + some text + + begin level 2 + * level 2 + * level 2 + +# h1 +## h2 +### h3 diff --git a/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/paragraph_end.html b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/paragraph_end.html new file mode 100644 index 0000000..c337d61 --- /dev/null +++ b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/paragraph_end.html @@ -0,0 +1,38 @@ +

A

+
    +
  • b
  • +
+ +

This is a list

+
    +
  • or is it
  • +
+ +

blockquote

+
+

text

+
+ +

header

+

text

+ +

codeblock fenced

+
puts hello world
+
+ +
    +
  • +

    level 1
    +some text

    + +

    begin level 2

    +
      +
    • level 2
    • +
    • level 2
    • +
    +
  • +
+ +

h1

+

h2

+

h3

diff --git a/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/paragraph_end.text b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/paragraph_end.text new file mode 100644 index 0000000..4e09e03 --- /dev/null +++ b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/paragraph_end.text @@ -0,0 +1,27 @@ +A + - b + +This is a list +- or is it + +blockquote +> text + +header +# text + +codeblock fenced +``` +puts hello world +``` + +* level 1 + some text + + begin level 2 + * level 2 + * level 2 + +# h1 +## h2 +### h3 diff --git a/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/strikethrough.html b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/strikethrough.html new file mode 100644 index 0000000..d35158f --- /dev/null +++ b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/strikethrough.html @@ -0,0 +1,33 @@ +

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~~.

+ +

This is a complex strike through *test with apparent nesting involved* here.

+ +

中文

+ +

a

diff --git a/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/strikethrough.text b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/strikethrough.text new file mode 100644 index 0000000..0984200 --- /dev/null +++ b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/strikethrough.text @@ -0,0 +1,33 @@ +~~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~~. + +This ~~is a complex *strike* through *test~~ with apparent nesting ~~involved* here~~. + +~~中文~~ + +~~a~~ diff --git a/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/task_list.html b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/task_list.html new file mode 100644 index 0000000..a11b553 --- /dev/null +++ b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/task_list.html @@ -0,0 +1,40 @@ +

unordered task list

+ +
    +
  • first ul task item
  • +
  • second ul task item
  • +
  • third ul task item
  • +
  • fourth ul task item [ ] next
  • +
+ +

unordered list

+ +
    +
  • +
    +

    first ul item

    +
    +
  • +
  • +
  • +
    test
    +
    +
  • +
  • second ul item
  • +
+ +

ordered list

+ +
    +
  1. first ol item
  2. +
  3. second ol item
  4. +
+ +

ordered task list

+ +
    +
  1. first ol task item
  2. +
  3. second ol task item
  4. +
  5. third ol task item
  6. +
  7. fourth ol task item
  8. +
diff --git a/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/task_list.text b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/task_list.text new file mode 100644 index 0000000..f6ade2f --- /dev/null +++ b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/task_list.text @@ -0,0 +1,26 @@ +unordered task list + +- [ ] first ul task item +- [x] second ul task item +- [X] third ul task item +- [ ] fourth ul task item [ ] next + +unordered list + +- > first ul item +- +- + test +- second ul item + +ordered list + +1. first ol item +2. second ol item + +ordered task list + +1. [ ] first ol task item +2. [x] second ol task item +3. [X] third ol task item +4. [ ] fourth ol task item diff --git a/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/two_para_hard_line_breaks.html b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/two_para_hard_line_breaks.html new file mode 100644 index 0000000..d5ba2e4 --- /dev/null +++ b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/two_para_hard_line_breaks.html @@ -0,0 +1,4 @@ +

This is just a normal paragraph.
+Containing a line break.

+ +

Another paragraph.

diff --git a/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/two_para_hard_line_breaks.text b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/two_para_hard_line_breaks.text new file mode 100644 index 0000000..6b3d7c5 --- /dev/null +++ b/vendor/bundle/ruby/3.4.0/gems/kramdown-parser-gfm-1.1.0/test/testcases/two_para_hard_line_breaks.text @@ -0,0 +1,4 @@ +This is just a normal paragraph. +Containing a line break. + +Another paragraph. -- cgit v1.2.3