mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2024-09-19 12:18:48 -04:00
Fix multiline pre appearing as inline pre
This commit is contained in:
parent
2155cd649c
commit
343dafb5b7
2 changed files with 4 additions and 4 deletions
|
@ -75,11 +75,11 @@ namespace DiscordChatExporter.Services
|
|||
|
||||
// Preformatted multiline
|
||||
content = Regex.Replace(content, "```([^`]*?)```",
|
||||
e => "<span class=\"pre\">" + e.Groups[1].Value + "</span>");
|
||||
m => "<div class=\"pre\">" + m.Groups[1].Value + "</div>");
|
||||
|
||||
// Preformatted
|
||||
// Preformatted inline
|
||||
content = Regex.Replace(content, "`([^`]*?)`",
|
||||
e => "<span class=\"pre\">" + e.Groups[1].Value + "</span>");
|
||||
m => "<span class=\"pre\">" + m.Groups[1].Value + "</span>");
|
||||
|
||||
// Bold
|
||||
content = Regex.Replace(content, "\\*\\*([^\\*]*?)\\*\\*", "<b>$1</b>");
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
text-decoration: underline;
|
||||
}
|
||||
|
||||
span.pre {
|
||||
div.pre, span.pre {
|
||||
font-family: Consolas, Courier New, Courier, Monospace;
|
||||
|
||||
padding-right: 2px;
|
||||
|
|
Loading…
Reference in a new issue