Skip to content

Commit

Permalink
Update callbacks.js
Browse files Browse the repository at this point in the history
  • Loading branch information
atherdon authored Jan 4, 2021
1 parent 443d6c2 commit 2d0343d
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions src/callbacks.js
Original file line number Diff line number Diff line change
@@ -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}`
Expand Down Expand Up @@ -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'));

Expand Down

0 comments on commit 2d0343d

Please sign in to comment.