azu / gitbook-plugin-include-codeblock

GitBook plugin for including file
Other
40 stars 25 forks source link

fix(marker): fix unexpected marker usage #13

Closed azu closed 8 years ago

azu commented 8 years ago

followup #12 snippet feature.

When the user write following

[import example.js](../../src/example.js)

Output in console:

markersSliceCode(): marker `  example.js` not found

This is unexpected behavior and breaking backward compatibility.

I think that : is alwawas required.

/cc @gdolle

azu commented 8 years ago

Existing slice's regexp is wrong too. :bow: ( Sorry to @gdolle )