From 43bc29c3c4534b5a5c41e12654fa3067ab3963fe Mon Sep 17 00:00:00 2001
From: Sam Scholten
Date: Thu, 27 Aug 2026 15:26:46 +1000
Subject: docs: note hspace inline fallback needs HTML mode (sanitizer strips
style attrs)
---
README | 2 +-
acarp.css | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/README b/README
index 28e1567..c001d51 100644
--- a/README
+++ b/README
@@ -127,7 +127,7 @@ def hello(name):
```html
indented text
indented block
-custom
+custom
```
diff --git a/acarp.css b/acarp.css
index a292f90..c3dcdb5 100644
--- a/acarp.css
+++ b/acarp.css
@@ -332,8 +332,9 @@ section .math {
/* Horizontal offset utilities - add left padding.
Works on inline spans (offset within a line) and block wrappers
(indents the whole block). Cleaner than runs of .
- For custom offsets, use an inline-padded element instead:
- text */
+ Note: inline style="" attrs are stripped by Marp's sanitizer unless
+ HTML mode is enabled, so prefer these classes over inline padding-left.
+ For custom offsets without HTML mode there is no inline fallback. */
.hspace-tiny { padding-left: 0.5em !important; }
.hspace-small { padding-left: 1em !important; }
.hspace-medium { padding-left: 2em !important; }
--
cgit v1.2.3