mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-06-04 08:59:39 -04:00
More refactorings.
This commit is contained in:
parent
9c414c92e2
commit
67bdb1515d
4 changed files with 33 additions and 37 deletions
|
@ -108,7 +108,7 @@ modulejs.define('ext/preview-txt', ['_', '$', 'core/settings', 'core/event', 'co
|
|||
|
||||
$text = $(templateMarkdown).text(textContent);
|
||||
|
||||
resource.loadMarkdown(function (md) {
|
||||
resource.ensureMarkdown(function (md) {
|
||||
|
||||
if (md) {
|
||||
$text.html(md.toHTML(textContent));
|
||||
|
@ -118,7 +118,7 @@ modulejs.define('ext/preview-txt', ['_', '$', 'core/settings', 'core/event', 'co
|
|||
|
||||
$text = $(templateText).text(textContent);
|
||||
|
||||
resource.loadSyntaxhighlighter(function (sh) {
|
||||
resource.ensureSH(function (sh) {
|
||||
|
||||
if (sh) {
|
||||
var $table = $('<table/>');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue