@helping-ai-workflow/md2doc 3.6.1 → 3.8.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/README.md +1 -0
- package/THIRD-PARTY-NOTICES.md +21 -0
- package/bin/md2doc.js +19 -3
- package/lib/editor/cell-range.js +85 -0
- package/lib/editor/client.js +809 -14
- package/lib/editor/server.js +5 -0
- package/lib/md2doc.js +433 -131
- package/package.json +6 -2
package/lib/editor/server.js
CHANGED
|
@@ -38,6 +38,10 @@ const PATCHMAP_SRC = fs.readFileSync(path.join(__dirname, 'patchmap.js'), 'utf8'
|
|
|
38
38
|
// property as indent-clamp.js and convert-md.js above; it only has to land
|
|
39
39
|
// before client.js reads window.md2docSelection.
|
|
40
40
|
const SELECTION_SRC = fs.readFileSync(path.join(__dirname, 'selection.js'), 'utf8');
|
|
41
|
+
// Table cell-range selection's pure model — same "no dependency on any other
|
|
42
|
+
// editor module" property as selection.js; it only has to land before
|
|
43
|
+
// client.js reads window.md2docCellRange.
|
|
44
|
+
const CELL_RANGE_SRC = fs.readFileSync(path.join(__dirname, 'cell-range.js'), 'utf8');
|
|
41
45
|
// v3.1.0 Task E: the four Phase-1 modules behind the visible toolbar, the
|
|
42
46
|
// paste pipeline, the image-drop asset endpoint and the whole-document
|
|
43
47
|
// source escape hatch. Same "pure module, no dependency on any other editor
|
|
@@ -731,6 +735,7 @@ async function createEditorServer({
|
|
|
731
735
|
`<script>${CONVERT_MD_SRC}</script>\n` +
|
|
732
736
|
`<script>${PATCHMAP_SRC}</script>\n` +
|
|
733
737
|
`<script>${SELECTION_SRC}</script>\n` +
|
|
738
|
+
`<script>${CELL_RANGE_SRC}</script>\n` +
|
|
734
739
|
`<script>${TOOLBAR_MODEL_SRC}</script>\n` +
|
|
735
740
|
`<script>${DOCSOURCE_SRC}</script>\n` +
|
|
736
741
|
`<script>${ASSET_SRC}</script>\n` +
|