Sha256: 5726eeafd0b14d1f122b261cf4ed053459d72f76999ab6af79978d8609930c82

Contents?: true

Size: 223 Bytes

Versions: 3

Compression:

Stored size: 223 Bytes

Contents

class String
	# fix some LaTeX command-name clashes
	def fix_latex
		if #{html_math_engine} == 'itex2mml'
			s = self.gsub("\\mathop{", "\\operatorname{")
			s.gsub("\\space{", "\\itexspace{")
		else
			self
		end
	end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
remi-maruku-0.5.9 lib/maruku/ext/math/latex_fix.rb
maruku-0.5.8 lib/maruku/ext/math/latex_fix.rb
maruku-0.5.9 lib/maruku/ext/math/latex_fix.rb