Skip to content

Releases

1.2.1

Choose a tag to compare

@riley0122 riley0122 released this 04 Apr 18:23

Added an option to use html breaks

https://www.npmjs.com/package/@extensio/html-syntax-highlighting/v/1.2.1

install using npm i @extensio/html-syntax-highlighting or yarn add @extensio/html-syntax-highlighting then you can import it with

import syntaxHighlight from "@extensio/html-syntax-highlighting";

OR

you can import it via unpkg by adding this to your html head:

<script type="module">
  import syntaxHighlight from "https://www.unpkg.com/@extensio/html-syntax-highlighting@1.1.0/dist/index.js"; 
</script>

or if you are importing it in a JS file that is linked in a html file:

let syntaxHighlight = (code, options) => {};
import("https://www.unpkg.com/@extensio/html-syntax-highlighting@latest/dist/index.js").then(({default: a}) => {
    syntaxHighlight = a;
});

Full Changelog: 1.2.0...1.2.1

1.2.0

Choose a tag to compare

@riley0122 riley0122 released this 04 Apr 17:41
55a1fcd

Added an option to use html breaks

https://www.npmjs.com/package/@extensio/html-syntax-highlighting/v/1.2.0

install using npm i @extensio/html-syntax-highlighting or yarn add @extensio/html-syntax-highlighting then you can import it with

import syntaxHighlight from "@extensio/html-syntax-highlighting";

OR

you can import it via unpkg by adding this to your html head:

<script type="module">
  import syntaxHighlight from "https://www.unpkg.com/@extensio/html-syntax-highlighting@1.1.0/dist/index.js"; 
</script>

or if you are importing it in a JS file that is linked in a html file:

let syntaxHighlight = (code, options) => {};
import("https://www.unpkg.com/@extensio/html-syntax-highlighting@latest/dist/index.js").then(({default: a}) => {
    syntaxHighlight = a;
});

Full Changelog: 1.1.0...1.2.0

Version 1.1.0

Choose a tag to compare

@riley0122 riley0122 released this 04 Apr 11:13

It is now fixed! It works finnally!

https://www.npmjs.com/package/@extensio/html-syntax-highlighting/v/1.1.0

install using npm i @extensio/html-syntax-highlighting or yarn add @extensio/html-syntax-highlighting or via unpkg by adding this to your html head:

<script type="module">
  import syntaxHighlight from "https://www.unpkg.com/@extensio/html-syntax-highlighting@1.1.0/dist/index.js"; 
</script>

What's Changed

New Contributors

Full Changelog: https://github.com/extensio-editor/html-syntax-highlighting/commits/1.1.0