Make draft mode regex global
This commit is contained in:
@@ -16,6 +16,6 @@ module.exports = DraftModeManager =
|
|||||||
_injectDraftOption: (content) ->
|
_injectDraftOption: (content) ->
|
||||||
content
|
content
|
||||||
# With existing options (must be first, otherwise both are applied)
|
# With existing options (must be first, otherwise both are applied)
|
||||||
.replace(/\\documentclass\[/, "\\documentclass[draft,")
|
.replace(/\\documentclass\[/g, "\\documentclass[draft,")
|
||||||
# Without existing options
|
# Without existing options
|
||||||
.replace(/\\documentclass\{/, "\\documentclass[draft]{")
|
.replace(/\\documentclass\{/g, "\\documentclass[draft]{")
|
||||||
Reference in New Issue
Block a user