Support for embedding gists

gwyner's Avatar


08 Mar, 2012 06:13 PM

I tried embedding a gist using the script tags generated when you click the embed link for a gist. From reviewing the markdown syntax guide it was not obvious to me whether this would be supported or not. When I do this in Byword it works just as I had hoped: the script is executed and the gist appears where inserted in the text, both in the Byword preview and in the html file.

In Marked the script shows at the bottom of the preview rather than in context in the text and is omitted from the generated html.

My suggestion would be to handle script tags in a similar way to the behavior in Byword.

Thanks for a really useful app!

  1. Support Staff 1 Posted by Brett on 08 Mar, 2012 06:35 PM

    Brett's Avatar

    Byword doesn't do anything with javascript in its preview, so it doesn't
    need to think about that. Marked moves scripts to the bottom in preview for
    performance and to avoid conflict with the scripts that run all of its
    keyboard nav and special features. I can add a loophole for gists, though.
    I'll work something in for the next version.


Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac