1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-30 05:19:57 +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>>;
background-color: <<colour code-background>>;
border: 1px solid <<colour code-border>>;
white-space: {{$:/themes/tiddlywiki/vanilla/options/codewrapping}};
padding: 0 3px 2px;
border-radius: 3px;
font-family: {{$:/themes/tiddlywiki/vanilla/settings/codefontfamily}};
@ -289,6 +288,7 @@ Markdown likes putting code elements inside pre elements
*/
pre > code {
display: block;
white-space: {{$:/themes/tiddlywiki/vanilla/options/codewrapping}};
padding: 0.5em;
border: none;
background-color: inherit;