@farming-labs/svelte 0.1.37 → 0.1.38
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.
- package/dist/markdown.d.ts +1 -1
- package/dist/markdown.js +2 -1
- package/package.json +2 -2
package/dist/markdown.d.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* - Callouts / admonitions (GitHub `[!NOTE]` and `**Note:**` styles)
|
|
9
9
|
* - Tables, lists, inline formatting, headings with anchor IDs
|
|
10
10
|
*/
|
|
11
|
-
import type
|
|
11
|
+
import { type DocsTheme } from "@farming-labs/docs";
|
|
12
12
|
interface RenderMarkdownOptions {
|
|
13
13
|
theme?: DocsTheme;
|
|
14
14
|
}
|
package/dist/markdown.js
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
* - Callouts / admonitions (GitHub `[!NOTE]` and `**Note:**` styles)
|
|
9
9
|
* - Tables, lists, inline formatting, headings with anchor IDs
|
|
10
10
|
*/
|
|
11
|
+
import { resolveDocsAgentMdxContent } from "@farming-labs/docs";
|
|
11
12
|
import { createHighlighter } from "shiki";
|
|
12
13
|
let highlighterPromise;
|
|
13
14
|
function getHighlighter() {
|
|
@@ -242,7 +243,7 @@ export async function renderMarkdown(content, options = {}) {
|
|
|
242
243
|
if (!content)
|
|
243
244
|
return "";
|
|
244
245
|
const hl = await getHighlighter();
|
|
245
|
-
let result = content;
|
|
246
|
+
let result = resolveDocsAgentMdxContent(content, "human");
|
|
246
247
|
// ── Tabs blocks: <Tabs items={[...]}> ... </Tabs> ──
|
|
247
248
|
const tabsBlocks = [];
|
|
248
249
|
result = result.replace(/<Tabs\s+items=\{?\[([^\]]+)\]\}?>([\s\S]*?)<\/Tabs>/g, (_, itemsStr, body) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@farming-labs/svelte",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.38",
|
|
4
4
|
"description": "SvelteKit adapter for @farming-labs/docs — content loading and navigation utilities",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"docs",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@types/node": "^22.10.0",
|
|
58
58
|
"typescript": "^5.9.3",
|
|
59
|
-
"@farming-labs/docs": "0.1.
|
|
59
|
+
"@farming-labs/docs": "0.1.38"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
62
|
"@farming-labs/docs": "*"
|