UTF-8 Bug
Create a test case for utf-8 bug reported by Diego Restrepo. Seems to be related to WikiWord chunk handling. Add some other tests, and fix a minor bug in vendor/plugins/maruku/lib/maruku/ext/math/latex_fix.rb.
This commit is contained in:
parent
a92b593949
commit
8ce5016b41
4 changed files with 14 additions and 5 deletions
|
@ -3,7 +3,7 @@ class String
|
|||
def fix_latex
|
||||
if #{html_math_engine} == 'itex2mml'
|
||||
s = self.gsub("\\mathop{", "\\operatorname{")
|
||||
s.gsub!(/\\begin{svg}.*?\\end{svg}/m, " ")
|
||||
s.gsub!(/\\begin\{svg\}.*?\\end\{svg\}/m, " ")
|
||||
s.gsub("\\space{", "\\itexspace{")
|
||||
else
|
||||
self
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue