We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fccaf0 commit caacb35Copy full SHA for caacb35
src/Renderers/SpanNodeRenderer.php
@@ -47,6 +47,11 @@ public function render(): string
47
// Work around "~" being parsed as non-breaking space by rst-parser,
48
// while this is not part of the specification.
49
$spanValue = $this->span->getValue();
50
+
51
+ if (str_contains($spanValue, '__TILDE__')) {
52
+ throw new \Exception('Cannot render content containing the text "__TILDE__" as it is used as a special placeholder in the build.');
53
+ }
54
55
$spanValue = str_replace('~', '__TILDE__', $spanValue);
56
$this->span->setValue($spanValue);
57
0 commit comments