@humanspeak/svelte-markdown 0.8.4 → 0.8.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { Parser } from 'htmlparser2';
1
+ import * as htmlparser2 from 'htmlparser2';
2
2
  /**
3
3
  * Matches HTML tags with comprehensive coverage of edge cases.
4
4
  * Pattern breakdown:
@@ -119,7 +119,7 @@ export const parseHtmlBlock = (html) => {
119
119
  let currentText = '';
120
120
  const selfClosingTags = /^(br|hr|img|input|link|meta|area|base|col|embed|keygen|param|source|track|wbr)$/i;
121
121
  const openTags = [];
122
- const parser = new Parser({
122
+ const parser = new htmlparser2.Parser({
123
123
  onopentag: (name, attributes) => {
124
124
  if (currentText.trim()) {
125
125
  tokens.push({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@humanspeak/svelte-markdown",
3
- "version": "0.8.4",
3
+ "version": "0.8.5",
4
4
  "description": "A powerful, customizable markdown renderer for Svelte with TypeScript support",
5
5
  "keywords": [
6
6
  "svelte",