Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Commit

Permalink
Merge pull request #15 from xnutsive/feature/youtube
Browse files Browse the repository at this point in the history
Added youtube embeds support. Closes #14
  • Loading branch information
natikgadzhi committed May 31, 2020
2 parents b23f8db + 2dcea21 commit 64ed187
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/supported-markdown-tags.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ This page shows off what tags are supported — it's generated with Notoma itsel

__Some bold text__ and *some italic text,* also some ~~strikethrough~~.

Link to another page in the Notion blog: ‣.
Link to another page in the Notion blog (@-style link): ‣.

## Subhedings and typography

Expand Down Expand Up @@ -50,3 +50,8 @@ When converting to Markdown, Images will respect the width if you shrink them in



### Youtube Videos

<iframe width="624" height="351" src="https://www.youtube.com/embed/BTKcDlow9dw?feature=oembed" frameborder="0" allowfullscreen>
</iframe>

2 changes: 2 additions & 0 deletions notoma/templates/blocks/_video.md.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<iframe width="{{block.width}}" height="{{block.width * 9 // 16 }}" src="{{block.display_source}}" frameborder="0" allowfullscreen>
</iframe>

0 comments on commit 64ed187

Please sign in to comment.