egoist/hanabi

Line number support

Closed this issue · 1 comments

Is there any plan to support line number?

You can achieve this easily by yourself:

let lineNumber = 0
let out = hanabi(code)
  .replace(/^/gm, m => {
    return `<span style="width: 30px; display: inline-block">${++lineNumber}</span>`
  })

And how it looks like:

2017-02-23 8 52 11