mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-02-14 15:53:30 -07:00
Fix preformatted text not overflowing
This commit is contained in:
parent
8662c8da04
commit
0bfcac4749
|
|
@ -91,10 +91,10 @@ namespace DiscordChatExporter.Services
|
||||||
"<a href=\"$1\">$1</a>");
|
"<a href=\"$1\">$1</a>");
|
||||||
|
|
||||||
// Preformatted multiline
|
// Preformatted multiline
|
||||||
content = Regex.Replace(content, "```([^`]*?)```", e => "<pre>" + e.Groups[1].Value + "</pre>");
|
content = Regex.Replace(content, "```([^`]*?)```", e => "<span class=\"pre\">" + e.Groups[1].Value + "</span>");
|
||||||
|
|
||||||
// Preformatted
|
// Preformatted
|
||||||
content = Regex.Replace(content, "`([^`]*?)`", e => "<pre>" + e.Groups[1].Value + "</pre>");
|
content = Regex.Replace(content, "`([^`]*?)`", e => "<span class=\"pre\">" + e.Groups[1].Value + "</span>");
|
||||||
|
|
||||||
// Bold
|
// Bold
|
||||||
content = Regex.Replace(content, "\\*\\*([^\\*]*?)\\*\\*", "<b>$1</b>");
|
content = Regex.Replace(content, "\\*\\*([^\\*]*?)\\*\\*", "<b>$1</b>");
|
||||||
|
|
|
||||||
|
|
@ -18,21 +18,19 @@
|
||||||
a:hover {
|
a:hover {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
pre {
|
span.pre {
|
||||||
margin: 0;
|
|
||||||
padding-left: 2px;
|
padding-left: 2px;
|
||||||
padding-right: 2px;
|
padding-right: 2px;
|
||||||
background-color: #f9f9f9;
|
background-color: #f9f9f9;
|
||||||
font-family: Consolas, Courier New, Courier, Monospace;
|
font-family: Consolas, Courier New, Courier, Monospace;
|
||||||
display: inline;
|
|
||||||
}
|
}
|
||||||
div#info {
|
div#info {
|
||||||
width: 100%;
|
max-width: 100%;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
color: #939799;
|
color: #939799;
|
||||||
}
|
}
|
||||||
div#log {
|
div#log {
|
||||||
width: 100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
div.msg {
|
div.msg {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue