Skip to content

Commit

Permalink
chore: fix npm package (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
moonlitgrace authored Oct 29, 2024
1 parent 7a73895 commit 96aba40
Show file tree
Hide file tree
Showing 6 changed files with 2,118 additions and 2,061 deletions.
2 changes: 1 addition & 1 deletion apps/example-svelte/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>highlight.js-svelte</title>
<title>highlight.svelte - example-svelte</title>
</head>
<body>
<div id="app"></div>
Expand Down
2 changes: 1 addition & 1 deletion apps/example-svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@sveltejs/vite-plugin-svelte": "^4.0.0",
"@tsconfig/svelte": "^5.0.4",
"highlight.js": "^11.10.0",
"highlight.js-svelte": "*",
"highlight.svelte": "*",
"svelte": "^5.0.3",
"svelte-check": "^4.0.5",
"tslib": "^2.8.0",
Expand Down
8 changes: 2 additions & 6 deletions apps/example-svelte/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import css from 'highlight.js/lib/languages/css';
import xml from 'highlight.js/lib/languages/xml';
// import svelte definition from package
import svelte from 'highlight.js-svelte';
import svelte from 'highlight.svelte';
const code = `
<script lang="ts">
Expand Down Expand Up @@ -46,11 +46,7 @@
const html = hljs.highlight(code, { language: 'svelte' }).value;
</script>

<svelte:head>
<title>highlight.js-svelte</title>
</svelte:head>

<h1>highlight.js-svelte</h1>
<h1>highlight.svelte</h1>

<pre
style="background-color: lightcyan; margin: 0; padding: 1rem; width: max-content;">
Expand Down
Loading

0 comments on commit 96aba40

Please sign in to comment.