Skip to content

Commit d0ed23a

Browse files
committed
fix: remove unused dependency and improve erldbg component styling
1 parent 36f8fb1 commit d0ed23a

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

package-lock.json

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
"dependencies": {
4545
"rehype-slug": "^6.0.0",
4646
"rehype-unwrap-images": "^1.0.0",
47-
"remark-toc": "^9.0.0",
48-
"unist-util-visit": "^5.0.0"
47+
"remark-toc": "^9.0.0"
4948
}
5049
}

src/lib/assets/mdlayouts/erldbg.svelte

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<script lang="ts">
2+
import Erldbg from './erldbg.svelte';
23
export let children: () => any;
34
</script>
45

5-
<span class="container">
6+
<span class="container erldbg">
67
{@render children?.()}
78
</span>
89

@@ -13,7 +14,7 @@
1314
overflow-wrap: break-word;
1415
word-break: break-word;
1516
}
16-
:global(pre code[class*='language-erlang']) {
17+
:global(.erldbg * code[class*='language-erlang']) {
1718
word-break: break-word;
1819
overflow-wrap: break-word; /* Breaks words only if they don't fit */
1920
white-space: pre-line; /* Preserves whitespace and wraps lines */

0 commit comments

Comments
 (0)