Skip to content

Commit

Permalink
added markdown filter. Issue: w3c#133
Browse files Browse the repository at this point in the history
  • Loading branch information
basdebruin committed Mar 12, 2021
1 parent dd5733c commit 2c3c76e
Show file tree
Hide file tree
Showing 3 changed files with 2,789 additions and 5 deletions.
5 changes: 4 additions & 1 deletion content-images/wai-statements/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,9 @@
var rest = string.slice(1);

return firstChar + rest;
},
markdown: function markdown(string) {
return marked ? marked(string) : string
}
};

Expand Down Expand Up @@ -569,7 +572,7 @@
break;

default:
item.innerText = printData;
item.innerHTML = printData;
}
}
})
Expand Down
Loading

0 comments on commit 2c3c76e

Please sign in to comment.