Blacklist more commands

This commit is contained in:
Shane Kilkelly 2017-06-16 09:41:40 +01:00
parent a1d2d5b313
commit d9aff3c3f4

View file

@ -252,7 +252,7 @@ define [
return $.ajax options
blankOutBlacklistedCommands: (line) ->
line.replace /\\label(\[[^\]]*\])?{[^}]*}/g, (command) ->
line.replace /\\(label|ref|usepackage|begin|end)(\[[^\]]*\])?{[^}]*}/g, (command) ->
command = command.replace /{.*}/, (args) ->
'{' + args.slice(1, args.length-1).split('').map((_char)-> '.').join('') + '}'
command.replace /\[.*\]/, (args) ->