@raketa-builder/support 1.3.15 → 1.3.17

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.
Files changed (2) hide show
  1. package/dist/toHTML.js +7 -14
  2. package/package.json +2 -4
package/dist/toHTML.js CHANGED
@@ -1,22 +1,15 @@
1
1
  import './chunk-ORMEWXMH.js';
2
- import MarkdownItCjs from 'markdown-it/dist/index.cjs.js';
3
- import markdownItAttrs from 'markdown-it-attrs';
2
+ import { marked } from 'marked';
4
3
 
5
- var _a;
6
- const MarkdownIt = (_a = MarkdownItCjs.default) != null ? _a : MarkdownItCjs;
7
- const parser = new MarkdownIt({
8
- html: true,
9
- breaks: true
10
- }).use(markdownItAttrs, {
11
- // optional, these are default options
12
- leftDelimiter: "{",
13
- rightDelimiter: "}",
14
- allowedAttributes: []
15
- // empty array = all attributes are allowed
4
+ marked.setOptions({
5
+ breaks: true,
6
+ gfm: true,
7
+ headerIds: false,
8
+ mangle: false
16
9
  });
17
10
  const toHTML = (string, inline = false) => {
18
11
  if (!string) return;
19
- return inline ? parser.renderInline(string) : parser.render(string);
12
+ return inline ? marked.parseInline(string) : marked.parse(string);
20
13
  };
21
14
  var toHTML_default = toHTML;
22
15
 
package/package.json CHANGED
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "name": "@raketa-builder/support",
3
- "version": "1.3.15",
4
- "type": "module",
3
+ "version": "1.3.17",
5
4
  "main": "./dist/index.js",
6
5
  "module": "./dist/index.mjs",
7
6
  "types": "./dist/index.d.ts",
@@ -30,8 +29,7 @@
30
29
  "react-dom": "19.1.0"
31
30
  },
32
31
  "dependencies": {
33
- "markdown-it": "14.1.0",
34
- "markdown-it-attrs": "4.3.1"
32
+ "marked": "^16.0.0"
35
33
  },
36
34
  "devDependencies": {
37
35
  "@biomejs/biome": "1.9.4",