Skip to content

Commit

Permalink
Change to default to common grammars
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jun 28, 2024
1 parent d97fbee commit 942c610
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import {ok as assert} from 'devlop'
import {selectAll} from 'hast-util-select'
import {createStarryNight, all} from '@wooorm/starry-night'
import {common, createStarryNight} from '@wooorm/starry-night'

/** @type {Readonly<Options>} */
const emptyOptions = {}
Expand All @@ -21,7 +21,7 @@ const emptyOptions = {}
*/
export default function rehypeStarryNight(options) {
const settings = options || emptyOptions
const grammars = settings.grammars || all
const grammars = settings.grammars || common
/** @type {ReturnType<typeof createStarryNight> | null} */
let factory = null
/** @type {Awaited<ReturnType<typeof createStarryNight>> | null} */
Expand Down

0 comments on commit 942c610

Please sign in to comment.