spec-up-t 1.2.8 → 1.3.0-beta
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/.github/copilot-instructions.md +3 -1
- package/assets/compiled/body.js +5 -4
- package/assets/compiled/head.css +1 -0
- package/assets/compiled/refs.json +1 -1
- package/assets/css/highlight-heading-plus-sibling-nodes.css +6 -0
- package/assets/css/index.css +9 -0
- package/assets/js/addAnchorsToTerms.js +13 -5
- package/assets/js/collapse-definitions.js +0 -6
- package/assets/js/fix-last-dd.js +6 -3
- package/assets/js/highlight-heading-plus-sibling-nodes.js +258 -0
- package/assets/js/insert-trefs.js +32 -28
- package/config/asset-map.json +2 -0
- package/gulpfile.js +8 -2
- package/index.js +45 -241
- package/package.json +2 -1
- package/sonar-project.properties +6 -0
- package/src/collect-external-references.js +22 -11
- package/src/collect-external-references.test.js +153 -2
- package/src/collectExternalReferences/fetchTermsFromIndex.js +65 -110
- package/src/collectExternalReferences/processXTrefsData.js +9 -11
- package/src/create-docx.js +332 -0
- package/src/create-pdf.js +243 -122
- package/src/escape-handler.js +67 -0
- package/src/fix-markdown-files.js +31 -34
- package/src/html-dom-processor.js +290 -0
- package/src/init.js +3 -0
- package/src/install-from-boilerplate/boilerplate/.github/workflows/menu.yml +4 -13
- package/src/install-from-boilerplate/boilerplate/spec/example-markup-in-markdown.md +0 -1
- package/src/install-from-boilerplate/boilerplate/spec/terms-and-definitions-intro.md +1 -5
- package/src/install-from-boilerplate/config-scripts-keys.js +4 -4
- package/src/install-from-boilerplate/menu.sh +6 -6
- package/src/markdown-it-extensions.js +60 -31
- package/src/references.js +18 -6
- package/templates/template.html +2 -0
- package/test-default-definitions.js +55 -0
- package/test-edge-cases.md +20 -0
- package/test-fix-markdown.js +11 -0
- package/test-no-def.md +22 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const { fixMarkdownFiles } = require('./src/fix-markdown-files');
|
|
2
|
+
const fs = require('fs');
|
|
3
|
+
const path = require('path');
|
|
4
|
+
|
|
5
|
+
// Test the functionality on our test files
|
|
6
|
+
console.log('Testing fix-markdown-files functionality...');
|
|
7
|
+
|
|
8
|
+
// Process test files directly by calling fixMarkdownFiles on the current directory
|
|
9
|
+
fixMarkdownFiles('.');
|
|
10
|
+
|
|
11
|
+
console.log('Processing complete. Check the test files for results.');
|
package/test-no-def.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Test File for Terms Without Definitions
|
|
2
|
+
|
|
3
|
+
This file contains terms that have no definitions to test the default definition functionality.
|
|
4
|
+
|
|
5
|
+
[[def: xip, xip]]
|
|
6
|
+
|
|
7
|
+
~ No local definition found.
|
|
8
|
+
|
|
9
|
+
[[tref:toip1, SSI]]
|
|
10
|
+
|
|
11
|
+
~ No local definition found.
|
|
12
|
+
|
|
13
|
+
Some other content here.
|
|
14
|
+
|
|
15
|
+
[[def: weight, weight]]
|
|
16
|
+
|
|
17
|
+
~ an optional field map in the Edge section that provides edge weight property that enables directed weighted edges and operators that use weights.
|
|
18
|
+
~ Source: Dr. S.Smith
|
|
19
|
+
|
|
20
|
+
[[def: another-term, another-term]]
|
|
21
|
+
|
|
22
|
+
~ No local definition found.
|