Socket
Socket
Sign inDemoInstall

lowlight

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lowlight - npm Package Compare versions

Comparing version 2.6.1 to 2.7.0

4

lib/all.js

@@ -63,3 +63,2 @@ import $1c from 'highlight.js/lib/languages/1c'

import gradle from 'highlight.js/lib/languages/gradle'
import graphql from 'highlight.js/lib/languages/graphql'
import groovy from 'highlight.js/lib/languages/groovy'

@@ -153,3 +152,2 @@ import haml from 'highlight.js/lib/languages/haml'

import vim from 'highlight.js/lib/languages/vim'
import wasm from 'highlight.js/lib/languages/wasm'
import wren from 'highlight.js/lib/languages/wren'

@@ -224,3 +222,2 @@ import x86asm from 'highlight.js/lib/languages/x86asm'

lowlight.registerLanguage('gradle', gradle)
lowlight.registerLanguage('graphql', graphql)
lowlight.registerLanguage('groovy', groovy)

@@ -314,3 +311,2 @@ lowlight.registerLanguage('haml', haml)

lowlight.registerLanguage('vim', vim)
lowlight.registerLanguage('wasm', wasm)
lowlight.registerLanguage('wren', wren)

@@ -317,0 +313,0 @@ lowlight.registerLanguage('x86asm', x86asm)

4

lib/common.js

@@ -9,2 +9,3 @@ import arduino from 'highlight.js/lib/languages/arduino'

import go from 'highlight.js/lib/languages/go'
import graphql from 'highlight.js/lib/languages/graphql'
import ini from 'highlight.js/lib/languages/ini'

@@ -35,2 +36,3 @@ import java from 'highlight.js/lib/languages/java'

import vbnet from 'highlight.js/lib/languages/vbnet'
import wasm from 'highlight.js/lib/languages/wasm'
import xml from 'highlight.js/lib/languages/xml'

@@ -48,2 +50,3 @@ import yaml from 'highlight.js/lib/languages/yaml'

lowlight.registerLanguage('go', go)
lowlight.registerLanguage('graphql', graphql)
lowlight.registerLanguage('ini', ini)

@@ -74,2 +77,3 @@ lowlight.registerLanguage('java', java)

lowlight.registerLanguage('vbnet', vbnet)
lowlight.registerLanguage('wasm', wasm)
lowlight.registerLanguage('xml', xml)

@@ -76,0 +80,0 @@ lowlight.registerLanguage('yaml', yaml)

@@ -213,3 +213,3 @@ /**

}
/** @type {[Root, ...Span[]]} */
/** @type {[Root, ...Array<Span>]} */
this.stack = [this.root]

@@ -216,0 +216,0 @@ }

{
"name": "lowlight",
"version": "2.6.1",
"version": "2.7.0",
"description": "Virtual syntax highlighting for virtual DOMs and non-HTML things",

@@ -42,3 +42,3 @@ "license": "MIT",

"fault": "^2.0.0",
"highlight.js": "~11.5.0"
"highlight.js": "~11.6.0"
},

@@ -55,3 +55,3 @@ "devDependencies": {

"rehype": "^12.0.0",
"remark-cli": "^10.0.0",
"remark-cli": "^11.0.0",
"remark-preset-wooorm": "^9.0.0",

@@ -64,3 +64,3 @@ "rimraf": "^3.0.0",

"unist-util-remove-position": "^4.0.0",
"xo": "^0.48.0"
"xo": "^0.50.0"
},

@@ -87,3 +87,3 @@ "scripts": {

"rules": {
"node/file-extension-in-import": "off"
"n/file-extension-in-import": "off"
}

@@ -90,0 +90,0 @@ },

@@ -50,3 +50,3 @@ <!--lint disable no-html-->

* `lib/core.js` — 0 languages
* `lib/common.js` (default) — 35 languages
* `lib/common.js` (default) — 37 languages
* `lib/all.js` — 192 languages

@@ -69,2 +69,4 @@

uses [Prism][] instead.
If you’re looking for a *really good* (but rather heavy) highlighter, try
[`starry-night`][starry-night].

@@ -80,13 +82,13 @@ ## Install

In Deno with [Skypack][]:
In Deno with [`esm.sh`][esmsh]:
```js
import {lowlight} from 'https://cdn.skypack.dev/lowlight@2?dts'
import {lowlight} from 'https://esm.sh/lowlight@2'
```
In browsers with [Skypack][]:
In browsers with [`esm.sh`][esmsh]:
```html
<script type="module">
import {lowlight} from 'https://cdn.skypack.dev/lowlight@2?min'
import {lowlight} from 'https://esm.sh/lowlight@2?bundle'
</script>

@@ -458,3 +460,3 @@ ```

* [ ] `gradle` — Gradle
* [ ] `graphql` (`gql`) — GraphQL
* [x] `graphql` (`gql`) — GraphQL
* [ ] `groovy` — Groovy

@@ -573,3 +575,3 @@ * [ ] `haml` — HAML

* [ ] `vim` — Vim Script
* [ ] `wasm` — WebAssembly
* [x] `wasm` — WebAssembly
* [ ] `wren` — Wren

@@ -608,4 +610,6 @@ * [ ] `x86asm` — Intel x86 Assembly

* [`wooorm/refractor`][refractor]
* [`refractor`][refractor]
— the same as lowlight but with [Prism][]
* [`starry-night`][starry-night]
— similar but like GitHub and really good

@@ -656,3 +660,3 @@ ## Projects

[skypack]: https://www.skypack.dev
[esmsh]: https://esm.sh

@@ -683,4 +687,6 @@ [license]: license

[starry-night]: https://github.com/wooorm/starry-night
[hast-util-to-html]: https://github.com/syntax-tree/hast-util-to-html
[hast-to-hyperscript]: https://github.com/syntax-tree/hast-to-hyperscript
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc