zakhenry/embedme

Add line numbering to output so when there is an error it is clear where

Closed this issue ยท 1 comments

Currently output looks like

...
    Embedded code snippet (4 lines) from file sample.kt
    Embedded code snippet (6 lines) from file sample.scala
    Embedded code snippet (8 lines) from file sample.cs#L6-L13
    Unsupported file extension [binary], supported extensions are txt, ts, js, scss, rs, java, cpp, c, html, xml, md, yaml, py, bash, sh, go, objectivec, php, cs, swift, rb, kotlin, scala, skipping code block
...

it would be better if it was

...
    test/fixture.md#L242-L249 Embedded code snippet (4 lines) from file sample.kt
    test/fixture.md#L253-L262 Embedded code snippet (6 lines) from file sample.scala
    test/fixture.md#L266-L277 Embedded code snippet (8 lines) from file sample.cs#L6-L13
    test/fixture.md#L281-L283 Unsupported file extension [binary], supported extensions are txt, ts, js, scss, rs, java, cpp, c, html, xml, md, yaml, py, bash, sh, go, objectivec, php, cs, swift, rb, kotlin, scala, skipping code block
...

Maybe even a verbose mode could output the offending code fence.

๐ŸŽ‰ This issue has been resolved in version 1.5.0 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€