Repository navigation
1.2.0
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