Skip to content

Commit

Permalink
Merge pull request #7 from ikashnitsky/main
Browse files Browse the repository at this point in the history
  • Loading branch information
sellorm authored Dec 22, 2023
2 parents d0148fd + d0f3919 commit 3a9723c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _extensions/social-embeds/mastodon.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ function mastodon(args)
local status_url = pandoc.utils.stringify(args[1])
print(status_url)
-- Assemble HTML to be returned
local html = '<div style="position: relative; padding-bottom: 56.25%; height: 0;"> <iframe src="'.. status_url ..'/embed" class="mastodon-embed" style="max-width: 100%; border: 0;" width="100%" height="400" allowfullscreen="allowfullscreen"></iframe><script src="https://mastodon.social/embed.js" async="async"></script></div> '
local html = '<div style="position: relative;"> <iframe src="'.. status_url ..'/embed" class="mastodon-embed" style="max-width: 100%; border: 0;" width="100%" height="500" allowfullscreen="allowfullscreen"></iframe><script src="https://mastodon.social/embed.js" async="async"></script></div> '

return pandoc.RawInline('html', html)
else
Expand Down

0 comments on commit 3a9723c

Please sign in to comment.