Skip to content

Commit

Permalink
PR Modifications Fix NPM run lint
Browse files Browse the repository at this point in the history
  • Loading branch information
L3houx committed Dec 8, 2021
1 parent 3d01352 commit a5d13f7
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions src/System/Tasks/ConversionRunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { highlight } from "highlight.js";
import cloneDeep = require("lodash.clonedeep");
import MarkdownIt = require("markdown-it");
import checkbox = require("markdown-it-checkbox");
import emoji = require("markdown-it-emoji");
import markdownContainer = require("markdown-it-container");
import emoji = require("markdown-it-emoji");
import markdownInclude = require("markdown-it-include");
import Token = require("markdown-it/lib/token");
import format = require("string-template");
Expand Down Expand Up @@ -499,14 +499,19 @@ export class ConversionRunner
markdownContainer,
"",
{
validate: function (name: string) {
validate(name: string)
{
return name.trim().length;
},
render: function (token:Token[], id:number) {
if (token[id].info.trim() !== '') {
render(token: Token[], id: number)
{
if (token[id].info.trim() !== "")
{
return `<div class="${token[id].info.trim()}">\n`;
} else {
return `</div>\n`;
}
else
{
return "</div>\n";
}
}
});
Expand Down

0 comments on commit a5d13f7

Please sign in to comment.