Skip to content

Embed marked - #87

Merged
tmcw merged 4 commits into
masterfrom
marked-in
Mar 21, 2019
Merged

Embed marked#87
tmcw merged 4 commits into
masterfrom
marked-in

Conversation

@tmcw

@tmcwtmcw commented Mar 13, 2019

Copy link
Copy Markdown
Contributor

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

tmcw commented Mar 21, 2019

Copy link
Copy Markdown
ContributorAuthor

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
Copy Markdown
Member

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

@mbostock

Copy link
Copy Markdown
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 mbostockMarch 21, 2019 23:06
@tmcw
tmcw merged commit 2ee8728 into masterMar 21, 2019
@tmcw
tmcw deleted the marked-in branch March 21, 2019 23:21
@mootari

Copy link
Copy Markdown

Was the version jump from 0.3.12 to 0.6.1 intended?

Sign up for freeto 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

@tmcw@mbostock@mootari