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

Embed marked #87

Merged
merged 4 commits into from
Mar 21, 2019
Merged

Embed marked #87

merged 4 commits into from
Mar 21, 2019

Conversation

tmcw
Copy link
Contributor

@tmcw tmcw commented Mar 13, 2019

One part of https://github.com/observablehq/notebook/issues/2197

Main gotcha that happens here is that the dependency path notebook - runtime - stdlib ends up with the 'module' entry in stdlib, and that means that it tries to import marked, and because marked is commonjs, it fails. So… we may need to either special-case that in the notebook, or something else.

@tmcw
Copy link
Contributor Author

tmcw commented Mar 21, 2019

In terms of doing this the long way, I opened a PR to add an ES Module entry point to marked markedjs/marked#1452

@mbostock
Copy link
Member

Let’s fork marked and use that as a dependency for now.

@mbostock
Copy link
Member

Thanks. If you revert the rollup.config.js changes and remove the rollup-plugin-commonjs dep, this looks good. 👍

@tmcw tmcw requested a review from mbostock March 21, 2019 23:06
@tmcw tmcw merged commit 2ee8728 into master Mar 21, 2019
@tmcw tmcw deleted the marked-in branch March 21, 2019 23:21
@mootari
Copy link
Member

mootari commented Mar 22, 2019

Was the version jump from 0.3.12 to 0.6.1 intended?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants