mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-08 08:39:03 +02:00
Merge pull request #19882 from overleaf/mj-tcblisting
[web] Mark tcblisting as verbatim GitOrigin-RevId: a64602b2b0d41c32e5f8612f190c6f5f8382f94b
This commit is contained in:
+3
-1
@@ -1820,7 +1820,9 @@ const EnvHandler = function (TokeniseResult, ErrorReporter) {
|
||||
// flag any verbatim environments for special handling
|
||||
if (
|
||||
name &&
|
||||
name.match(/^(verbatim|boxedverbatim|lstlisting|minted|Verbatim)$/)
|
||||
name.match(
|
||||
/^(verbatim|boxedverbatim|lstlisting|minted|Verbatim|tcblisting)$/
|
||||
)
|
||||
) {
|
||||
delimiter.verbatim = true
|
||||
}
|
||||
|
||||
@@ -697,6 +697,7 @@ const verbatimEnvNames = new Set([
|
||||
'minted',
|
||||
'Verbatim',
|
||||
'lstlisting',
|
||||
'tcblisting',
|
||||
'codeexample',
|
||||
'comment',
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user