Skip to content

Commit

Permalink
added support for tables in markdown previewer in betatest
Browse files Browse the repository at this point in the history
  • Loading branch information
ErykKul authored and qqmyers committed Feb 18, 2025
1 parent 39a9fab commit d1dac14
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions previewers/betatest/js/md.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ function translateBaseHtmlPage() {
function writeContentAndData(data, fileUrl, file, title, authors) {
addStandardPreviewHeader(file, title, authors);
const converter = new showdown.Converter();
converter.setOption('tables', true);
const html = converter.makeHtml(data);
$('.preview').append($("<div/>").html(html));
}

0 comments on commit d1dac14

Please sign in to comment.