mdorigin 0.1.7 → 0.2.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.
package/dist/search.js CHANGED
@@ -3,6 +3,7 @@ import path from 'node:path';
3
3
  import { inferDirectoryContentType } from './core/content-type.js';
4
4
  import { getDirectoryIndexCandidates } from './core/directory-index.js';
5
5
  import { getDocumentSummary, getDocumentTitle, parseMarkdownDocument, } from './core/markdown.js';
6
+ import { isIgnoredContentName } from './core/content-store.js';
6
7
  export async function buildSearchBundle(options) {
7
8
  const buildModule = await loadIndexbindBuildModule();
8
9
  const rootDir = path.resolve(options.rootDir);
@@ -102,7 +103,7 @@ async function walkDirectory(absoluteDirectoryPath, relativeDirectoryPath, visit
102
103
  results.push(indexFile);
103
104
  }
104
105
  for (const entry of entries) {
105
- if (entry.name.startsWith('.')) {
106
+ if (isIgnoredContentName(entry.name)) {
106
107
  continue;
107
108
  }
108
109
  const absoluteEntryPath = path.join(absoluteDirectoryPath, entry.name);
@@ -160,7 +161,7 @@ async function inspectDirectoryShape(directoryPath) {
160
161
  let hasExtraMarkdownFiles = false;
161
162
  let hasAssetFiles = false;
162
163
  for (const entry of entries) {
163
- if (entry.name.startsWith('.')) {
164
+ if (isIgnoredContentName(entry.name)) {
164
165
  continue;
165
166
  }
166
167
  const absoluteEntryPath = path.join(directoryPath, entry.name);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mdorigin",
3
- "version": "0.1.7",
3
+ "version": "0.2.0",
4
4
  "type": "module",
5
5
  "description": "Markdown-first publishing for humans and agents.",
6
6
  "repository": {
@@ -66,9 +66,11 @@
66
66
  },
67
67
  "dependencies": {
68
68
  "gray-matter": "^4.0.3",
69
+ "rehype-raw": "^7.0.0",
70
+ "rehype-stringify": "^10.0.1",
69
71
  "remark": "^15.0.1",
70
72
  "remark-gfm": "^4.0.1",
71
- "remark-html": "^16.0.1",
73
+ "remark-rehype": "^11.1.2",
72
74
  "tsx": "^4.20.5"
73
75
  },
74
76
  "devDependencies": {
@@ -1 +0,0 @@
1
- export type TemplateName = 'document' | 'catalog';
@@ -1 +0,0 @@
1
- export {};