mirror of
https://github.com/laurent22/joplin.git
synced 2025-01-02 12:47:41 +02:00
All: Resolves #761: Highlight single tick code segments
This commit is contained in:
parent
3a2d62f6c7
commit
81ac200cc0
@ -259,7 +259,7 @@ class MdToHtml {
|
||||
}
|
||||
|
||||
if (!rendererPlugin) {
|
||||
output.push('<code>');
|
||||
output.push('<code class="inline-code">');
|
||||
}
|
||||
}
|
||||
|
||||
@ -597,6 +597,13 @@ class MdToHtml {
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
}
|
||||
|
||||
.inline-code {
|
||||
border: 1px solid #CBCBCB;
|
||||
background-color: #eff0f1;
|
||||
padding-right: .2em;
|
||||
padding-left: .2em;
|
||||
}
|
||||
`;
|
||||
|
||||
const styleHtml = '<style>' + normalizeCss + "\n" + css + '</style>';
|
||||
|
Loading…
Reference in New Issue
Block a user