💥 feat!: force code blocks LTR rendering (#412)
BREAKING CHANGE: Code blocks default to LTR. Set `force_codeblock_ltr = false` to keep previous behaviour.
This commit is contained in:
@@ -101,6 +101,18 @@ pre {
|
||||
}
|
||||
}
|
||||
|
||||
// Default to LTR codeblocks.
|
||||
code, pre {
|
||||
direction: ltr;
|
||||
}
|
||||
|
||||
// Allows RTL codeblocks if `force_codeblock_ltr` is set to false.
|
||||
html[data-code-direction="inherit"] {
|
||||
code, pre {
|
||||
direction: inherit;
|
||||
}
|
||||
}
|
||||
|
||||
.copy-code {
|
||||
-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960' %3E%3Cpath d='M217.002-67.694q-37.732 0-64.02-26.288-26.287-26.287-26.287-64.019V-707.69h77.999v549.689q0 4.615 3.846 8.462 3.846 3.846 8.462 3.846h451.689v77.999H217.002Zm175.999-175.999q-37.733 0-64.02-26.287T302.694-334v-463.383q0-37.732 26.287-64.02 26.287-26.287 64.02-26.287h365.383q37.732 0 64.019 26.287 26.288 26.288 26.288 64.02V-334q0 37.733-26.288 64.02-26.287 26.287-64.019 26.287H393.001Zm0-77.998h365.383q4.615 0 8.462-3.847 3.846-3.846 3.846-8.462v-463.383q0-4.616-3.846-8.462-3.847-3.846-8.462-3.846H393.001q-4.616 0-8.462 3.846-3.847 3.846-3.847 8.462V-334q0 4.616 3.847 8.462 3.846 3.847 8.462 3.847Zm-12.309 0v-488V-321.691Z'/%3E%3C/svg%3E");
|
||||
position: absolute;
|
||||
|
Reference in New Issue
Block a user