File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33> Syntax Highlighting using the CSS Custom Highlight API.
44
55[ ![ Test status] ( https://img.shields.io/github/actions/workflow/status/andreruffert/syntax-highlight-element/test.yml?label=Test&logo=github&color=32A9C3&labelColor=1B3C4A )] ( https://github.com/andreruffert/syntax-highlight-element/actions/workflows/test.yml )
6- [ ![ npm version] ( https://img.shields.io/npm/v/syntax-highlight-element?color=32A9C3&labelColor=1B3C4A )] ( https://www.npmjs.com /package/syntax-highlight-element )
7- [ ![ npm downloads] ( https://img.shields.io/npm/dm/syntax-highlight-element?logo=npm&color=32A9C3&labelColor=1B3C4A )] ( https://www.npmjs.com /package/syntax-highlight-element )
6+ [ ![ npm version] ( https://img.shields.io/npm/v/syntax-highlight-element?color=32A9C3&labelColor=1B3C4A )] ( https://npmx.dev /package/syntax-highlight-element )
7+ [ ![ npm downloads] ( https://img.shields.io/npm/dm/syntax-highlight-element?logo=npm&color=32A9C3&labelColor=1B3C4A )] ( https://npmx.dev /package/syntax-highlight-element )
88[ ![ jsDelivr hits (npm)] ( https://img.shields.io/jsdelivr/npm/hm/syntax-highlight-element?color=32A9C3&labelColor=1B3C4A )] ( https://www.jsdelivr.com/package/npm/syntax-highlight-element )
99
1010The code is highlighted without having to wrap a bunch of ` <span> ` elements around each token, thanks to [ Prism] [ prism_github ] 's tokenizer and the [ CSS Custom Highlight API] [ MDN_CSS_Custom_Highlight_API ] .
Original file line number Diff line number Diff line change 6161 < span class ="heading "> <syntax-highlight></ span >
6262 < h1 class ="tagline "> A custom element that uses the CSS Custom Highlight API for syntax highlighting</ h1 >
6363 < p class ="badges ">
64- < a href ="https://www.npmjs.com /package/syntax-highlight-element " target ="_blank " rel ="noreferrer ">
64+ < a href ="https://npmx.dev /package/syntax-highlight-element " target ="_blank " rel ="noreferrer ">
6565 < img src ="https://img.shields.io/npm/v/syntax-highlight-element?color=32A9C3&labelColor=1B3C4A " height ="20 " alt ="npm version " />
6666 </ a >
67- < a href ="https://www.npmjs.com /package/syntax-highlight-element " target ="_blank " rel ="noreferrer "> < img src ="https://img.shields.io/npm/dm/syntax-highlight-element?logo=npm&color=32A9C3&labelColor=1B3C4A " height ="20 " alt ="npm downloads "> </ a >
67+ < a href ="https://npmx.dev /package/syntax-highlight-element " target ="_blank " rel ="noreferrer "> < img src ="https://img.shields.io/npm/dm/syntax-highlight-element?logo=npm&color=32A9C3&labelColor=1B3C4A " height ="20 " alt ="npm downloads "> </ a >
6868 < a href ="https://www.jsdelivr.com/package/npm/syntax-highlight-element " target ="_blank " rel ="noreferrer ">
6969 < img src ="https://img.shields.io/jsdelivr/npm/hm/syntax-highlight-element?color=32A9C3&labelColor=1B3C4A " height ="20 " alt ="jsDelivr hits (npm) ">
7070 </ a >
You can’t perform that action at this time.
0 commit comments