From 2d0343d83936f7ba355868ec82b41c40aa298839 Mon Sep 17 00:00:00 2001 From: Arthur Tkachenko Date: Mon, 4 Jan 2021 02:36:30 +0200 Subject: [PATCH] Update callbacks.js --- src/callbacks.js | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/src/callbacks.js b/src/callbacks.js index 15ac7fb3e..eae96f5fb 100644 --- a/src/callbacks.js +++ b/src/callbacks.js @@ -1,21 +1,6 @@ const { replaceHTMLWrapper } = require("./helpers"); const { newLine } = require('./utils'); -const { - strong, - link, - blockquote, - mem, - header, - italic, - del, - q, - code, - hr, - empty -} = require('./callbacks-simple') - - function strong(text, doubleAsterix, content, asterix) { const config = { content: `${content + asterix}` @@ -140,23 +125,6 @@ function mem(text, src, href, altText) { } - -function header(text, chars, content) { - const config = { - content: content.trim(), - }; - - const titleType = [ - "mainTitle", - "subtitle", - "heading" - ]; - - const result = newLine + replaceHTMLWrapper(titleType[chars.length - 1], config); - - return result; -} - function br(text, newLines) { const arrNewLines = newLines.match(new RegExp(newLine, 'g'));