Skip to content

Commit 62b0bb7

Browse files
committed
style: run format
1 parent aac4846 commit 62b0bb7

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

docs/index.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
<svg class="icon" width="1.2em" height="1.2em"><use xlink:href="#sun"></use></svg>
5555
</color-scheme-switch>
5656
</header>
57+
5758
<main>
5859
<section data-section="intro">
5960
<span class="emoji" aria-hidden="true">👓</span>
@@ -155,8 +156,8 @@ <h3>CSS</h3>
155156
<section data-section="content">
156157
<h1>Attributes</h1>
157158
<ul>
158-
<li><code>language</code> The syntax language. The default is <code>plaintext</code>. Default suported languages <code>html|css|js</code>.
159-
<li><code>content-selector</code> A CSS selector to specify the content element. The default is the element itself.
159+
<li><code>language</code> The syntax language. The default is <code>plaintext</code>. Default suported languages <code>html|css|js</code>.</li>
160+
<li><code>content-selector</code> A CSS selector to specify the content element. The default is the element itself.</li>
160161
</ul>
161162
</section>
162163

@@ -168,7 +169,7 @@ <h1>Configuration</h1>
168169
* @type {object}
169170
* @property {string[]} languages - List of languages to support for syntax highlighting.
170171
* @property {string[]} tokenTypes - Token types used during lexing/parsing.
171-
* @property {{[key: string]: string[]}} languageTokens - Mapping of language names to their specific tokenization rules.
172+
* @property {[key: string]: string[]} languageTokens - Mapping of language names to their specific tokenization rules.
172173
* @property {function} setup - Runs before the custom element gets defined in the registry.
173174
* @property {function} tokenize - Tokenize text based on the specified language grammar
174175
*/
@@ -193,8 +194,8 @@ <h1>Configuration</h1>
193194
<section data-section="content">
194195
<h1>Credits</h1>
195196
<ul>
196-
<li><a href="https://github.com/bramus" target="_blank" rel="noreferrer">Bramus Van Damme</a> and his <a href="https://www.bram.us/2024/02/18/custom-highlight-api-for-syntax-highlighting" target="_blank">blog post</a> where I first read about using the <a href="https://developer.mozilla.org/en-US/docs/Web/API/CSS_Custom_Highlight_API" target="_blank">CSS Custom Highlight API</a> for syntax highlighting.
197-
<li><a href="https://github.com/PrismJS/prism" target="_blank" rel="noreferrer">Prism</a>'s tokenizer.
197+
<li><a href="https://github.com/bramus" target="_blank" rel="noreferrer">Bramus Van Damme</a> and his <a href="https://www.bram.us/2024/02/18/custom-highlight-api-for-syntax-highlighting" target="_blank">blog post</a> where I first read about using the <a href="https://developer.mozilla.org/en-US/docs/Web/API/CSS_Custom_Highlight_API" target="_blank">CSS Custom Highlight API</a> for syntax highlighting.</li>
198+
<li><a href="https://github.com/PrismJS/prism" target="_blank" rel="noreferrer">Prism</a>'s tokenizer.</li>
198199
</ul>
199200
</section>
200201
</main>
@@ -232,7 +233,7 @@ <h1>Credits</h1>
232233
<script type="module">
233234
import 'https://cdn.jsdelivr.net/npm/syntax-highlight-element@1/+esm';
234235

235-
import { languageExamples, fetchFileContent } from './language-examples.js'
236+
import { fetchFileContent, languageExamples } from './language-examples.js'
236237
import { themePresets } from './theme-presets.js';
237238

238239
const DEFAULT_LANGUAGE_EXAMPLE = 'JS';
@@ -268,7 +269,7 @@ <h1>Credits</h1>
268269
option.selected = name === DEFAULT_LANGUAGE_EXAMPLE || !index;
269270
return option;
270271
});
271-
languageOptions.forEach(option => languageSelector.append(option));
272+
languageOptions.forEach(option => { languageSelector.append(option) });
272273
languageSelector.removeAttribute('disabled');
273274
languageSelector.addEventListener('change', async event => {
274275
togglePlaygroundLoading();
@@ -295,7 +296,7 @@ <h1>Credits</h1>
295296
option.selected = !index;
296297
return option
297298
});
298-
themeOptions.forEach(option => themeSelector.append(option));
299+
themeOptions.forEach(option => { themeSelector.append(option) });
299300
themeSelector.removeAttribute('disabled');
300301
themeSelector.addEventListener('change', event => {
301302
togglePlaygroundLoading();
@@ -335,4 +336,3 @@ <h1>Credits</h1>
335336
</script>
336337
</body>
337338
</html>
338-

docs/style.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,6 @@
425425
opacity: 1;
426426

427427
@starting-style {
428-
/* biome-ignore lint/suspicious/noDuplicateProperties: reason */
429428
opacity: 0;
430429
transform: translateY(100%);
431430
}

index.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
syntax-highlight[data-inline] {
2323
display: inline;
24-
padding: unset;
2524
hyphens: unset;
2625
overflow: unset;
2726
line-height: inherit;
@@ -85,8 +84,8 @@
8584
- unordered list item 2
8685
</syntax-highlight>
8786

88-
<syntax-highlight language="jsx">{/* ... */}
89-
&lt;Component attr="value">
87+
<syntax-highlight language="jsx">&#123;/* ... */&#125;
88+
&lt;Component attr="value"&gt;
9089
{children}
9190
&lt;/Component&gt;
9291
</syntax-highlight>

0 commit comments

Comments
 (0)