Skip to content

Commit

Permalink
fix(code-block): revert "prism syntax highlighting"
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjohnson committed Oct 8, 2024
1 parent a4582d0 commit e59f64c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion elements/rh-code-block/docs/30-code.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ use the correct mime type for your content, e.g. `text/html` for HTML content.

<rh-alert state="warning">
<h3 slot="header">Warning</h3>
<p>When slotting HTML content into the code-block, if that HTML content contains a <code>&lt;/script&gt;</code> end tag, you must escape it.</p>
<p>When slotting HTML content into the code-block, if that HTML content contains a `</script>` end tag, you must escape it.</p>
</rh-alert>

One approach to escaping script tags that is to close the containing `<script
Expand Down
1 change: 0 additions & 1 deletion elements/rh-code-block/rh-code-block.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ export class RhCodeBlock extends LitElement {
override connectedCallback() {
super.connectedCallback();
this.#ro.observe(this);
this.#onSlotChange();
}

override disconnectedCallback() {
Expand Down

0 comments on commit e59f64c

Please sign in to comment.