markdown-up 3.6.0 → 3.6.2
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/lib/scriptLibrary.js +7 -2
- package/package.json +3 -3
package/lib/scriptLibrary.js
CHANGED
|
@@ -861,9 +861,10 @@ const markdownTitleArgs = valueArgsModel([
|
|
|
861
861
|
// $arg typeName: The type name
|
|
862
862
|
// $arg actionURLs: Optional (default is null). The
|
|
863
863
|
// $arg actionURLs: [action URL overrides](https://craigahobbs.github.io/schema-markdown-doc/doc/#var.vName='ActionURL').
|
|
864
|
+
// $arg actionCustom: Optional (default is false). If true, the action has a custom response.
|
|
864
865
|
// $return: The schema type's documentation [element model](https://github.com/craigahobbs/element-model#readme)
|
|
865
866
|
function schemaElements(args, options) {
|
|
866
|
-
const [types, typeName, actionURLs = null] = valueArgsValidate(schemaElementsArgs, args);
|
|
867
|
+
const [types, typeName, actionURLs = null, actionCustom] = valueArgsValidate(schemaElementsArgs, args);
|
|
867
868
|
const schemaOptions = {
|
|
868
869
|
'params': encodeQueryString(options.params),
|
|
869
870
|
'markdownOptions': options.markdownOptions
|
|
@@ -871,13 +872,17 @@ function schemaElements(args, options) {
|
|
|
871
872
|
if (actionURLs !== null) {
|
|
872
873
|
schemaOptions.actionURLs = actionURLs;
|
|
873
874
|
}
|
|
875
|
+
if (actionCustom) {
|
|
876
|
+
schemaOptions.actionCustom = true;
|
|
877
|
+
}
|
|
874
878
|
return schemaMarkdownDoc(types, typeName, schemaOptions);
|
|
875
879
|
}
|
|
876
880
|
|
|
877
881
|
const schemaElementsArgs = valueArgsModel([
|
|
878
882
|
{'name': 'types', 'type': 'object'},
|
|
879
883
|
{'name': 'typeName', 'type': 'string'},
|
|
880
|
-
{'name': 'actionURLs', 'type': 'array', 'nullable': true}
|
|
884
|
+
{'name': 'actionURLs', 'type': 'array', 'nullable': true},
|
|
885
|
+
{'name': 'actionCustom', 'type': 'boolean', 'default': false}
|
|
881
886
|
]);
|
|
882
887
|
|
|
883
888
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "markdown-up",
|
|
4
|
-
"version": "3.6.
|
|
4
|
+
"version": "3.6.2",
|
|
5
5
|
"description": "MarkdownUp is a Markdown viewer",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"markdown",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"c8": "~10.1",
|
|
33
|
-
"eslint": "~9.
|
|
33
|
+
"eslint": "~9.30",
|
|
34
34
|
"jsdoc": "~4.0",
|
|
35
|
-
"jsdom": "~26.
|
|
35
|
+
"jsdom": "~26.1"
|
|
36
36
|
}
|
|
37
37
|
}
|