Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Convert package to module, fixes #1 #2

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"name": "remark-torchlight",
"version": "0.0.2",
"version": "0.0.3",
"description": "A remark plugin for Torchlight - the syntax highlighting API.",
"main": "index.js",
"exports": "./index.js",
"type": "module",
"scripts": {
"test": "standard --env jest && jest"
},
Expand Down
2 changes: 1 addition & 1 deletion tests/__snapshots__/render.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

exports[`it tests 1`] = `
"<p>this <em>is</em> <a href=\\"https://www.google.com\\">test</a></p>
<pre class=\\"classes\\" style=\\"style: 1;\\"><code class=\\"language-js\\">highlighted</code></pre>
<pre><code>highlighted</code></pre>
"
`;
2 changes: 1 addition & 1 deletion tests/render.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import torchlight from '../index'
import torchlight from '../index.js'
import { remark } from 'remark'
import html from 'remark-html'
import {mockApi} from '@torchlight-api/torchlight-cli/tests/support/helpers'
Expand Down