blob: 2be2cf1ec9f470c90727689bd4efdfc5faa68267 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
marked.setOptions({
renderer: new marked.Renderer(),
gfm: true,
tables: true,
breaks: false,
pedantic: false,
sanitize: false,
smartLists: true,
smartypants: false
});
// Poor man document.ready();
(function() {
var placeholder = document.getElementById('placeholder');
var content = document.getElementById('content');
placeholder.innerHTML = marked(content.innerHTML);
})();
|