@ruckc/truss-markdown 1.28.0 → 1.29.0

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/README.md +27 -0
  2. package/package.json +3 -2
package/README.md ADDED
@@ -0,0 +1,27 @@
1
+ # @ruckc/truss-markdown
2
+
3
+ A safe Markdown renderer for [Truss UI](https://truss.ruck.io): text is parsed to a typed AST and drawn with Svelte elements, never HTML strings, with syntax-highlighted code blocks.
4
+
5
+ Docs: <https://truss.ruck.io/docs/packages>
6
+
7
+ ## Install
8
+
9
+ ```sh
10
+ npm install @ruckc/truss-markdown @ruckc/truss-ui
11
+ ```
12
+
13
+ `svelte` (^5.20) and `@ruckc/truss-ui` are peer dependencies.
14
+
15
+ ## Usage
16
+
17
+ ```svelte
18
+ <script lang="ts">
19
+ import { Markdown } from '@ruckc/truss-markdown';
20
+ </script>
21
+
22
+ <Markdown text={'# Hello\n\nSome **bold** text and `code`.'} />
23
+ ```
24
+
25
+ ## License
26
+
27
+ MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ruckc/truss-markdown",
3
- "version": "1.28.0",
3
+ "version": "1.29.0",
4
4
  "description": "A safe Markdown renderer for Truss UI: a typed AST rendered with Svelte components, never HTML strings",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -8,7 +8,8 @@
8
8
  "package": "svelte-package -i src/lib -o dist"
9
9
  },
10
10
  "files": [
11
- "dist"
11
+ "dist",
12
+ "README.md"
12
13
  ],
13
14
  "sideEffects": [
14
15
  "**/*.css"