We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5da6196 commit 164d4ccCopy full SHA for 164d4cc
docs/lib/JSONSchemaMarkdown.js
@@ -538,7 +538,7 @@ class JSONSchemaMarkdown {
538
*/
539
writeRef(ref, level) {
540
if (this.notEmpty(ref)) {
541
- this.writeLine("$ref: [" + ref + "](" + this.refLink(ref) + ")", level);
+ this.writeLine("$ref: [" + this.escapeLink(ref) + "](" + this.refLink(ref) + ")", level);
542
}
543
544
@@ -769,6 +769,14 @@ class JSONSchemaMarkdown {
769
error(error) {
770
this.errors.push(error);
771
772
+
773
+ /**
774
+ * Escape string for MD link
775
+ * @param {String} value
776
+ */
777
+ escapeLink(value){
778
+ return value.replace('$', '\\$'); //$ in [] breaks markdown
779
+ }
780
781
;
782
0 commit comments