Skip to content

Commit

Permalink
chg: [website] Set the tables option to true in showdown.Converter.
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricbonhomme committed Sep 5, 2024
1 parent 15fe9b2 commit 24fa4f9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion website/web/templates/comments/comments.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ <h1>Recent comments</h1>

function load_comments(parameters){
var DateTime = luxon.DateTime;
var converter = new showdown.Converter()
var converter = new showdown.Converter({tables: true});
var commentTemplate = _.template(
'<div class="card">' +
'<div class="card-body">' +
Expand Down
4 changes: 2 additions & 2 deletions website/web/templates/user/user.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ <h3>Recent bundles</h3>
<script>
document.addEventListener("DOMContentLoaded", function() {
var DateTime = luxon.DateTime;
var converter = new showdown.Converter()
var converter = new showdown.Converter({tables: true});
var commentTemplate = _.template(
'<div class="card">' +
'<div class="card-body">' +
Expand Down Expand Up @@ -108,7 +108,7 @@ <h3>Recent bundles</h3>
});


var converter = new showdown.Converter()
var converter = new showdown.Converter({tables: true});
var bundleTemplate = _.template(
'<div class="card">' +
'<div class="card-body">' +
Expand Down
4 changes: 2 additions & 2 deletions website/web/templates/vuln.html
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ <h5>Tags</h5>
});
}
var DateTime = luxon.DateTime;
var converter = new showdown.Converter()
var converter = new showdown.Converter({tables: true});
var commentTemplate = _.template(
'<div class="card">' +
'<div class="card-body">' +
Expand Down Expand Up @@ -475,7 +475,7 @@ <h5>Tags</h5>

function loadBundles() {
var DateTime = luxon.DateTime;
var converter = new showdown.Converter()
var converter = new showdown.Converter({tables: true});
var bundleTemplate = _.template(
'<div class="card">' +
'<div class="card-body">' +
Expand Down

0 comments on commit 24fa4f9

Please sign in to comment.