Skip to content

Commit

Permalink
remove some logs
Browse files Browse the repository at this point in the history
  • Loading branch information
delashum committed Aug 13, 2021
1 parent 58cd2bd commit b2e05a3
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/plugins/plugin-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ const utils = {

let counter = 0

/**
* Constructor function
*/

export const regexPlugin = (
regexp: RegExp,
replacer: (match: string[], utils: { escape: (html: string) => string }) => string
Expand All @@ -27,15 +23,12 @@ export const regexPlugin = (
const id = "regexp-" + counter++

return (md: MD) => {
console.log(md)
md.inline.ruler.push(id, (state, silent) => {
var match = _regexp.exec(state.src.slice(state.pos))
if (!match) return false

// valid match found, now we need to advance cursor
state.pos += match[0].length

// don't insert any tokens in silent mode
if (silent) return true

var token = state.push(id, "", 0)
Expand Down

0 comments on commit b2e05a3

Please sign in to comment.