Skip to content

Releases: azu/gitbook-plugin-include-codeblock

1.7.0

05 Apr 05:57
@azu azu

Choose a tag to compare

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

24 Jan 02:53
@azu azu

Choose a tag to compare

Bug Fixes

  • parser: fix lookupLanguageByExtension error (8259c50), closes #8

1.6.0

12 Jan 00:38
@azu azu

Choose a tag to compare

Features

  • Translate filename extensions to language names. #6

Some language's names don't exactly match their filename extensions.
One example is Elixir.

e.g.) .exs -> elixir

Thanks @joekain

1.5.0

14 Nov 03:40
@azu azu

Choose a tag to compare

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