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 3a300ac commit 9223cccCopy full SHA for 9223ccc
src/Renderers/SpanNodeRenderer.php
@@ -42,6 +42,19 @@ public function __construct(
42
$this->symfonyVersion = $symfonyVersion;
43
}
44
45
+ public function render(): string
46
+ {
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
+ $spanValue = str_replace('~', '__TILDE__', $spanValue);
51
+ $this->span->setValue($spanValue);
52
+
53
+ $rendered = parent::render();
54
55
+ return str_replace('__TILDE__', '~', $rendered);
56
+ }
57
58
/** @inheritDoc */
59
public function link(?string $url, string $title, array $attributes = []): string
60
{
0 commit comments