@rakutentech/docsify-code-inline
Advanced tools
Comparing version 1.0.1 to 1.0.2
# @rakutentech/docsify-code-inline ChangeLog | ||
## v1.0.2 | ||
_2021-01-20_ | ||
### Bugfixes | ||
- fix: improve docs (7721cf5) | ||
- fix: fix typo in readme (3843183) | ||
## v1.0.1 | ||
@@ -4,0 +13,0 @@ |
{ | ||
"name": "@rakutentech/docsify-code-inline", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public", |
@@ -21,11 +21,23 @@ [npm]: https://img.shields.io/npm/v/@rakutentech/docsify-code-inline | ||
<!-- autoloads, injects CSS --> | ||
<script src="docsify-code-inline.js"></script> | ||
<script src="//unpkg.com/@rakutentech/docsify-code-inline/dist/index.min.js"></script> | ||
<!-- autoloads, doesn't inject CSS --> | ||
<script src="docsify-code-inline.js" data-no-css-inject></script> | ||
<script src="//unpkg.com/@rakutentech/docsify-code-inline/dist/index.min.js" data-no-css-inject></script> | ||
<!-- doesn't load, doesn't inject CSS --> | ||
<script src="docsify-code-inline.js" data-no-autoload data-no-css-inject></script> | ||
<script src="//unpkg.com/@rakutentech/docsify-code-inline/dist/index.min.js" data-no-autoload data-no-css-inject></script> | ||
``` | ||
You can also import it as an ES module, if using the `.esm` build: | ||
```html | ||
<script type="module" src="//unpkg.com/@rakutentech/docsify-code-inline/dist/index.esm.min.js"></script> | ||
``` | ||
The module also support Node. See the API below. | ||
```sh | ||
npm install --save-dev @rakutentech/docsify-code-inline | ||
``` | ||
## Usage | ||
@@ -35,3 +47,3 @@ | ||
If you wrap `code` with square brackets and add a language identifier, e.g. | ||
[`<link href="foo">` html]`, then the produced markup will enable syntax | ||
[`<link href="foo">` html], then the produced markup will enable syntax | ||
highlighting using PrismJS like in code fences. | ||
@@ -72,2 +84,6 @@ ``` | ||
## Typescript | ||
Types are included in the library. | ||
## API | ||
@@ -74,0 +90,0 @@ |
16652
96