Skip to content

Commit

Permalink
added support for tables in markdown previewer
Browse files Browse the repository at this point in the history
  • Loading branch information
ErykKul committed Jul 9, 2024
1 parent 32864e5 commit 86ddd14
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions previewers/v1.4/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 86ddd14

Please sign in to comment.