diff --git a/modules/nlb/book-to-pef/src/main/resources/css/nlb-default.scss b/modules/nlb/book-to-pef/src/main/resources/css/nlb-default.scss
index 1f74876f5d..e162241fdc 100644
--- a/modules/nlb/book-to-pef/src/main/resources/css/nlb-default.scss
+++ b/modules/nlb/book-to-pef/src/main/resources/css/nlb-default.scss
@@ -14,6 +14,8 @@ $page-width: 40 !default;
$hyphenation: true !default;
$force-norwegian: true !default;
$duplex: true !default;
+$include-strong: true !default;
+$include-em: true !default;
@import "page-numbers";
@import "line-spacing";
diff --git a/modules/nlb/book-to-pef/src/main/resources/css/text-formatting.scss b/modules/nlb/book-to-pef/src/main/resources/css/text-formatting.scss
index fc0f51c188..665e0e29cf 100644
--- a/modules/nlb/book-to-pef/src/main/resources/css/text-formatting.scss
+++ b/modules/nlb/book-to-pef/src/main/resources/css/text-formatting.scss
@@ -26,15 +26,23 @@
close: "⠐⠂";
}
-strong, b {
- text-transform: strong;
- :root:not(:has(em, i)) & {
- text-transform: em;
+@if ($include-strong) {
+ strong, b {
+ @if ($include-em) {
+ text-transform: strong;
+ :root:not(:has(em, i)) & {
+ text-transform: em;
+ }
+ } @else {
+ text-transform: em;
+ }
}
}
-em, i {
- text-transform: em;
+@if ($include-em) {
+ em, i {
+ text-transform: em;
+ }
}
u {
diff --git a/modules/nlb/book-to-pef/src/main/resources/xml/dtbook-to-pef.xpl b/modules/nlb/book-to-pef/src/main/resources/xml/dtbook-to-pef.xpl
index 8bef3ccd39..e767388a71 100644
--- a/modules/nlb/book-to-pef/src/main/resources/xml/dtbook-to-pef.xpl
+++ b/modules/nlb/book-to-pef/src/main/resources/xml/dtbook-to-pef.xpl
@@ -69,6 +69,8 @@