lib/polytexnic/preprocessors/polytex.rb in polytexnic-0.6.2 vs lib/polytexnic/preprocessors/polytex.rb in polytexnic-0.6.3
- old
+ new
@@ -65,10 +65,10 @@
end
# Caches raw LaTeX commands to be passed through the pipeline.
def cache_raw_latex(markdown, cache)
command_regex = /(
- \s*\\.*\n # Command on a single line
+ ^\s*\\\w+.*\}\s*$ # Command on line with arg
|
~\\ref\{.*?\} # reference with a tie
|
~\\eqref\{.*?\} # eq reference with a tie
|
\ No newline at end of file