module Minidown
  module Utils
    Regexp = {
      lines: /\n|\r\n/,
      blank_line: /\A\s*\z/,
      h1_or_h2: /\A([=-]{3,})(.*)/,
      start_with_shape: /\A(\#{1,6})\s*(.+?)\s*#*\z/,
      start_with_quote: /\A\>\s*(.+)/,
      unorder_list: /\A(\s*)[*\-+]\s+(.+)/,
      order_list: /\A(\s*)\d+\.\s+(.+)/,
      code_block: /\A\s*(?:`{3}|~{3,})\s*(\S*)/,
      dividing_line: /\A(\s*[*-]\s*){3,}\z/,
      indent_code: /\A\s{4}(.+)/
    }
  end
end

module Minidown
  module Utils
    Regexp = {
      lines: /\n|\r\n/,
      blank_line: /\A\s*\z/,
      h1_or_h2: /\A([=-]{3,})(.*)/,
      start_with_shape: /\A(\#{1,6})\s*(.+?)\s*#*\z/,
      start_with_quote: /\A\>\s*(.+)/,
      unorder_list: /\A(\s*)[*\-+]\s+(.+)/,
      order_list: /\A(\s*)\d+\.\s+(.+)/,
      code_block: /\A\s*[`~]{3,}\s*(\S*)/,
      dividing_line: /\A(\s*[*-]\s*){3,}\z/,
      indent_code: /\A\s{4}(.+)/
    }
  end
end

Allow arbitrary number of backticks for fenced code blocks
Allow arbitrary number of backticks for fenced code blocks
