Releases: azu/gitbook-plugin-include-codeblock
Releases · azu/gitbook-plugin-include-codeblock
1.7.0
Features
- parse: allow to use hardcode class (23c68a0)
When you import a TypeScript file .ts:
The parser correctly finds .ts in the language-map extensions for both TypeScript and XML, then automatically chooses XML.
If you want to specify language type, put lang-<lang-name> to label.
[import, lang-typescript](hello-world.ts)You can choose <lang-name> of lang-<lang-name> from language-map's aceMode value.
e.g.) typescript's aceMode value is typescript.
As a result, Include code as TypeScript
[import, lang-typescript](hello-world.ts)1.6.1
1.6.0
1.5.0
Features
Slice code import support #5
Slice code pattern: [import:<start-lineNumber>-<end-lineNumber>](path/to/file)
lineNumber start with 1.
All Patterns:
All: [import, hello-world.js](../src/hello-world.js)
1-2: [import:1-2, hello-world.js](../src/hello-world.js)
2-3: [import:2-3, hello-world.js](../src/hello-world.js)
2>=: [import:2-, hello-world.js](../src/hello-world.js)
<=3: [import:-3, hello-world.js](../src/hello-world.js)
Thanks @matsu-chara