Skip to content

Commit

Permalink
Add story to use worker via CDN
Browse files Browse the repository at this point in the history
  • Loading branch information
yhatt committed Mar 27, 2019
1 parent 617342a commit a19c33c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions stories/marp-worker.stories.ts
Expand Up @@ -24,6 +24,18 @@ storiesOf('MarpWorker', module)
template: '<MarpWorker :markdown="markdown" :worker="worker" />',
})
)
.add('Use worker via CDN', () =>
editor({
components,
props: {
markdown: {
default: () =>
'# Use worker via CDN\n\nBy default, MarpWorker uses prebuilt worker via jsDelivr CDN.',
},
},
template: '<MarpWorker :markdown="markdown" />',
})
)
.add('Large Markdown', () => {
const markdown = largeMd(
[
Expand Down

0 comments on commit a19c33c

Please sign in to comment.