azu / gitbook-plugin-include-codeblock

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

Break output when imported code contains ``` #55

Closed azu closed 6 years ago

azu commented 6 years ago

A.js

/**
Example
```
var a = 1
```
*/

This plugina includes A.js and break output

[import](./A.js)

Because, ``` of the code is end of codeblock. We should escape ` in the codes.

azu commented 6 years ago

Avoid this issue

/**
 * @example
 * ```js
 * a()
 * ```
 */
function a(){

}