diff options
| author | (quasar) nebula <qznebula@protonmail.com> | 2025-10-25 15:02:59 -0300 |
|---|---|---|
| committer | (quasar) nebula <qznebula@protonmail.com> | 2025-10-25 15:02:59 -0300 |
| commit | 477eb6f606bec51b358b71bad828bc4a9c0ebe52 (patch) | |
| tree | 17535983d82cef7ae7f48ea268f2d38e276482fb /src/content/dependencies | |
| parent | adfbf436e15bfddeae3b47dbce26179b026145ca (diff) | |
content, css: content-code overflow indicator
Diffstat (limited to 'src/content/dependencies')
| -rw-r--r-- | src/content/dependencies/transformContent.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/content/dependencies/transformContent.js b/src/content/dependencies/transformContent.js index e6d847fa..8e902647 100644 --- a/src/content/dependencies/transformContent.js +++ b/src/content/dependencies/transformContent.js @@ -43,11 +43,11 @@ const multilineMarked = new Marked({ .replaceAll(/ {2,}/g, spaces => ' '.repeat(spaces.length))); return ( - `<pre class="content-code"><code>` + + `<pre class="content-code"><span><code>` + (lines.length > 1 ? '\n' : '') + lines.join('<br>\n') + (lines.length > 1 ? '\n' : '') + - `</pre></code>` + `</pre></span></code>` ); }, }, |