Merge pull request #19882 from overleaf/mj-tcblisting

[web] Mark tcblisting as verbatim

GitOrigin-RevId: a64602b2b0d41c32e5f8612f190c6f5f8382f94b
This commit is contained in:
Eric Mc Sween 2024-08-13 08:54:36 -04:00 committed by Copybot
parent e10478f256
commit c117483761
2 changed files with 4 additions and 1 deletions

View file

@ -1820,7 +1820,9 @@ const EnvHandler = function (TokeniseResult, ErrorReporter) {
// flag any verbatim environments for special handling // flag any verbatim environments for special handling
if ( if (
name && name &&
name.match(/^(verbatim|boxedverbatim|lstlisting|minted|Verbatim)$/) name.match(
/^(verbatim|boxedverbatim|lstlisting|minted|Verbatim|tcblisting)$/
)
) { ) {
delimiter.verbatim = true delimiter.verbatim = true
} }

View file

@ -697,6 +697,7 @@ const verbatimEnvNames = new Set([
'minted', 'minted',
'Verbatim', 'Verbatim',
'lstlisting', 'lstlisting',
'tcblisting',
'codeexample', 'codeexample',
'comment', 'comment',
]) ])