Skip to content

Commit

Permalink
Update mastodon.lua
Browse files Browse the repository at this point in the history
address #6
  • Loading branch information
ikashnitsky authored Dec 21, 2023
1 parent 48408bf commit d0f3919
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 d0f3919

Please sign in to comment.