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

Added '.js' extension to ES6 import #42

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion src/asciimath-to-tex.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import test from 'ava';
import asciimathToTex from './asciimath-to-tex';
import asciimathToTex from './asciimath-to-tex.js';

test('just a number', t => {
t.is(asciimathToTex('5'), '{5}');
Expand Down
4 changes: 2 additions & 2 deletions src/showdown-katex.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import katex from 'katex';
import renderMathInElement from 'katex/dist/contrib/auto-render';
import renderMathInElement from 'katex/dist/contrib/auto-render.js';
import showdown from 'showdown';
import asciimathToTex from './asciimath-to-tex';
import asciimathToTex from './asciimath-to-tex.js';

if (process.env.TARGET === 'cjs') {
const { JSDOM } = require('jsdom');
Expand Down
2 changes: 1 addition & 1 deletion src/showdown-katex.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import test from 'ava';
import showdown from 'showdown';
import katex from '../lib/showdown-katex';
import katex from '../lib/showdown-katex.js';

const input = '# hello, markdown!';
const output = '<h1 id="hellomarkdown">hello, markdown!</h1>';
Expand Down