1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-09-21 11:49:44 +00:00

Inline code should not follow "Wrap long lines in code blocks" option

This commit is contained in:
Leilei332 2024-07-25 12:13:58 +08:00
parent 739e8cdf55
commit 4615a04e59

View File

@ -157,7 +157,6 @@ code {
color: <<colour code-foreground>>; color: <<colour code-foreground>>;
background-color: <<colour code-background>>; background-color: <<colour code-background>>;
border: 1px solid <<colour code-border>>; border: 1px solid <<colour code-border>>;
white-space: {{$:/themes/tiddlywiki/vanilla/options/codewrapping}};
padding: 0 3px 2px; padding: 0 3px 2px;
border-radius: 3px; border-radius: 3px;
font-family: {{$:/themes/tiddlywiki/vanilla/settings/codefontfamily}}; font-family: {{$:/themes/tiddlywiki/vanilla/settings/codefontfamily}};
@ -289,6 +288,7 @@ Markdown likes putting code elements inside pre elements
*/ */
pre > code { pre > code {
display: block; display: block;
white-space: {{$:/themes/tiddlywiki/vanilla/options/codewrapping}};
padding: 0.5em; padding: 0.5em;
border: none; border: none;
background-color: inherit; background-color: inherit;