Skip to content

Commit

Permalink
Remove whitespace control via handlebars
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-ju committed Dec 18, 2023
1 parent 204f991 commit b7a1e14
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions packages/components/addon/components/hds/code-block/index.hbs
Expand Up @@ -9,19 +9,16 @@
{{~yield (hash Description=(component "hds/code-block/description"))~}}
</div>
<div class="hds-code-block__body">
{{! content within pre tag is whitespace-sensitive; do not add new lines! }}
<pre
class="hds-code-block__code"
{{style maxHeight=@maxHeight}}
data-line={{@highlightLines}}
id={{this.preCodeId}}
tabindex="0"
>
{{~! ~}}
<code {{did-insert this.setPrismCode}} {{did-update this.setPrismCode this.code @language}}>
><code {{did-insert this.setPrismCode}} {{did-update this.setPrismCode this.code @language}}>
{{~this.prismCode~}}
</code>
{{~! ~}}
</pre>
</code></pre>

{{#if @hasCopyButton}}
<Hds::CodeBlock::CopyButton @targetToCopy="#{{this.preCodeId}}" aria-describedby={{this.preCodeId}} />
Expand Down

0 comments on commit b7a1e14

Please sign in to comment.