* added "quotes" to the locales
* made all the ejs pages use "postID" as the variable for post indexes * split up en-GB and en-US
This commit is contained in:
@@ -101,13 +101,15 @@ export function render_comment(comment_content) {
|
||||
};
|
||||
export function render_md(content) {
|
||||
const markdownit = require("markdown-it")
|
||||
const config = require("../config.json")
|
||||
const locale = require(`../locales/${config.locale}.json`)
|
||||
const md = markdownit({
|
||||
html: false,
|
||||
xhtmlOut: false,
|
||||
breaks: true,
|
||||
linkify: false,
|
||||
typographer: true,
|
||||
quotes: true,
|
||||
quotes: locale.quotes,
|
||||
})
|
||||
return md.render(content)
|
||||
};
|
||||
|
Reference in New Issue
Block a user