tweaking tsconfig.json
This commit is contained in:
Vendored
+11
-6
@@ -1,10 +1,14 @@
|
||||
"use strict";
|
||||
/*
|
||||
* hopdown.ts
|
||||
* - Configurable markdown <=> HTML converter.
|
||||
*/
|
||||
import { defaultTags } from "./defaults";
|
||||
import { Tokenizer } from "./tokenizer";
|
||||
export function escapeHtml(source) {
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.HopDown = void 0;
|
||||
exports.escapeHtml = escapeHtml;
|
||||
const defaults_1 = require("./defaults");
|
||||
const tokenizer_1 = require("./tokenizer");
|
||||
function escapeHtml(source) {
|
||||
return source
|
||||
.replace(/&/g, '&')
|
||||
.replace(/</g, '<')
|
||||
@@ -33,13 +37,13 @@ export function escapeHtml(source) {
|
||||
* "</div>"
|
||||
* );
|
||||
*/
|
||||
export class HopDown {
|
||||
class HopDown {
|
||||
tags;
|
||||
referenceLinks = new Map();
|
||||
tokenizer;
|
||||
constructor(tags) {
|
||||
this.tags = tags || defaultTags;
|
||||
this.tokenizer = new Tokenizer(this.tags);
|
||||
this.tags = tags || defaults_1.defaultTags;
|
||||
this.tokenizer = new tokenizer_1.Tokenizer(this.tags);
|
||||
}
|
||||
/**
|
||||
* Convert a markdown string to tokens.
|
||||
@@ -376,3 +380,4 @@ export class HopDown {
|
||||
return result;
|
||||
}
|
||||
}
|
||||
exports.HopDown = HopDown;
|
||||
|
||||
Reference in New Issue
Block a user