lib/kramdown/parser/kramdown/table.rb in kramdown-1.12.0 vs lib/kramdown/parser/kramdown/table.rb in kramdown-1.13.0
- old
+ new
@@ -11,12 +11,12 @@
module Kramdown
module Parser
class Kramdown
- TABLE_SEP_LINE = /^([+|: -]*?-[+|: -]*?)[ \t]*\n/
- TABLE_HSEP_ALIGN = /[ ]?(:?)-+(:?)[ ]?/
- TABLE_FSEP_LINE = /^[+|: =]*?=[+|: =]*?[ \t]*\n/
+ TABLE_SEP_LINE = /^([+|: \t-]*?-[+|: \t-]*?)[ \t]*\n/
+ TABLE_HSEP_ALIGN = /[ \t]?(:?)-+(:?)[ \t]?/
+ TABLE_FSEP_LINE = /^[+|: \t=]*?=[+|: \t=]*?[ \t]*\n/
TABLE_ROW_LINE = /^(.*?)[ \t]*\n/
TABLE_PIPE_CHECK = /(?:\||.*?[^\\\n]\|)/
TABLE_LINE = /#{TABLE_PIPE_CHECK}.*?\n/
TABLE_START = /^#{OPT_SPACE}(?=\S)#{TABLE_LINE}/