Skip to content

Commit

Permalink
Merge pull request #350 from marp-team/refactor-lazy-highlightjs
Browse files Browse the repository at this point in the history
`highlightjs` getter
  • Loading branch information
yhatt authored Aug 1, 2023
2 parents 8d0f9e1 + 80a7c82 commit 0fc5ad8
Show file tree
Hide file tree
Showing 5 changed files with 461 additions and 7 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@

## [Unreleased]

### Added

- `highlightjs` getter, to access the generated highlight.js instance per Marp Core instances ([#350](https://github.com/marp-team/marp-core/pull/350))

### Changed

- Marp Core instance is no longer using the shared highlight.js instance ([#350](https://github.com/marp-team/marp-core/pull/350))
- Upgrade Node.js and dependent packages to the latest version ([#351](https://github.com/marp-team/marp-core/pull/351))

## v3.7.0 - 2023-06-09
Expand Down
9 changes: 5 additions & 4 deletions marp.config.mjs
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import path from 'node:path'

const dirname = path.dirname(new URL(import.meta.url).pathname)

export default {
engine: path.join(dirname, './lib/marp.js'),
engine: './lib/marp.js',
server: true,
inputDir: path.join(dirname, './sandbox'),
inputDir: path.join(
path.dirname(new URL(import.meta.url).pathname),
'./sandbox',
),
html: true,
options: {
minifyCSS: false,
Expand Down
Loading

0 comments on commit 0fc5ad8

Please sign in to comment.