mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 14:13:02 -04:00
prevent codeblock escaping
This commit is contained in:
parent
7cfc996490
commit
f9dfc8fc93
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ module.exports.highlight = function(content){
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports.codeblock = function(type, content){
|
module.exports.codeblock = function(type, content){
|
||||||
return "```" + type + "\n" + content.join('\n') + "\n```"
|
return "```" + type + "\n" + content.join('\n').replace(/`/g, '`') + "\n```"
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports.link = function(url, masked, tooltip = ""){
|
module.exports.link = function(url, masked, tooltip = ""){
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue