We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c34f48 commit a9a7452Copy full SHA for a9a7452
lib/jekyll-spaceship/processors/mathjax-processor.rb
@@ -45,6 +45,7 @@ def on_handle_markdown(content)
45
escaped_expr = expr
46
.gsub(/(?<!^)\\(?!\S$)/, '\\\\\\\\')
47
.gsub(/(?<!\\)\$\$/, '\\\$\\\$')
48
+ .gsub(/\\\\(?=\s)/, '\\\\\\\\\\')
49
.gsub(/\\ /, '\\\\\\ ')
50
content = content.gsub(expr, escaped_expr)
51
end
@@ -92,7 +93,7 @@ def get_math_patterns()
92
93
r&.each do |i|
94
btag = Regexp.escape(i[0])
95
etag = Regexp.escape(i[1])
- patterns <<= /((?<!\\\\)#{btag}(.*?)(?<!\\\\)#{etag})/
96
+ patterns <<= /((?<!\\\\)#{btag}([\s\S]*?)(?<!\\\\)#{etag})/
97
98
99
0 commit comments