mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-02-03 16:54:34 +00:00
Disable markdown it debug output in production
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
This commit is contained in:
parent
1dfbc25aff
commit
749345ec57
1 changed files with 3 additions and 1 deletions
|
@ -203,7 +203,9 @@ export const MarkdownRenderer: React.FC<MarkdownRendererProps> = ({ content, onM
|
|||
slugify: slugify
|
||||
})
|
||||
md.use(linkifyExtra)
|
||||
md.use(MarkdownItParserDebugger)
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
md.use(MarkdownItParserDebugger)
|
||||
}
|
||||
|
||||
validAlertLevels.forEach(level => {
|
||||
md.use(markdownItContainer, level, { render: createRenderContainer(level) })
|
||||
|
|
Loading…
Reference in a new issue