diff --git a/news/23.breaking b/news/23.breaking new file mode 100644 index 0000000..8995546 --- /dev/null +++ b/news/23.breaking @@ -0,0 +1 @@ +- fix quotation marks using `lang` attribute from blockquote instead of the html ones \ No newline at end of file diff --git a/src/components/View.jsx b/src/components/View.jsx index 5c97e9b..15f1114 100644 --- a/src/components/View.jsx +++ b/src/components/View.jsx @@ -12,7 +12,7 @@ const View = (props) => { slateSettings: { ...config.settings.slate, toolbarButtons: config.settings.slate.toolbarButtons.filter( - (index) => index - config.settings.slate.toolbarButtons, + (index) => index - config.settings.slate.toolbarButtons ), }, }; @@ -37,7 +37,7 @@ const View = (props) => {
{!isEditMode ? (
diff --git a/src/theme/main.less b/src/theme/main.less
index 46e9311..c5427eb 100644
--- a/src/theme/main.less
+++ b/src/theme/main.less
@@ -6,27 +6,30 @@
margin-bottom: 1em;
}
-.block.quote blockquote:not(.isEmpty) {
+html {
&[lang='de'] {
- p {
- &::before {
- content: '„';
- }
+ .block.quote blockquote:not(.isEmpty) {
+ p {
+ &::before {
+ content: '„';
+ }
- &::after {
- content: '“';
+ &::after {
+ content: '“';
+ }
}
}
}
-
&[lang='en'] {
- p {
- &::before {
- content: '"';
- }
+ .block.quote blockquote:not(.isEmpty) {
+ p {
+ &::before {
+ content: '"';
+ }
- &::after {
- content: '"';
+ &::after {
+ content: '"';
+ }
}
}
}