Skip to content

Commit

Permalink
Merge pull request #66 from zooniverse/html5-media
Browse files Browse the repository at this point in the history
Add support for <audio> and <video>
  • Loading branch information
eatyourgreens authored Mar 9, 2018
2 parents 9ffd359 + 6147756 commit 77b0e13
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 45 deletions.
120 changes: 77 additions & 43 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,12 @@
"react-test-renderer": "~15.6"
},
"dependencies": {
"markdown-it": "~7.0.1",
"markdown-it": "~8.4.1",
"markdown-it-anchor": "~2.5.0",
"markdown-it-container": "~2.0.0",
"markdown-it-emoji": "~1.2.0",
"markdown-it-footnote": "~3.0.1",
"markdown-it-html5-embed": "~1.0.0",
"markdown-it-imsize": "~2.0.1",
"markdown-it-sub": "~1.0.0",
"markdown-it-sup": "~1.0.0",
Expand Down
5 changes: 4 additions & 1 deletion src/components/markdown.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import markdownVideo from 'markdown-it-video';
import markdownTableOfContents from 'markdown-it-table-of-contents';
import markdownAnchor from 'markdown-it-anchor';
import twemoji from 'twemoji';
import html5Embed from 'markdown-it-html5-embed';


import replaceSymbols from '../lib/default-transformer';
import relNofollow from '../lib/links-rel-nofollow';
Expand All @@ -27,7 +29,8 @@ function markdownIt() {
.use(markdownAnchor)
.use(markdownTableOfContents)
.use(MarkdownItContainer, 'partners')
.use(MarkdownItContainer, 'attribution');
.use(MarkdownItContainer, 'attribution')
.use(html5Embed, {});
}

export default class Markdown extends React.Component {
Expand Down

0 comments on commit 77b0e13

Please sign in to comment.