Skip to content

GitHub Flavored Markdown Theme/Preview #959

Closed as not planned
Closed as not planned

Description

@iFredOS

Describe your feature request

I would like a theme or a way to preview a render of how exactly it looks like the GitHub Markdown view.

Additional context

It would help me to WYSIWYG before pushing, for example, my README on GitHub.

Thank you very much in advance for considering this new feature. I really love your app! 😄

Activity

  1. added
    🦄 feature request
    on Apr 18, 2019
  2. chrisseaton commented on Apr 30, 2019

    @chrisseaton

    Two concrete and significant ways Marktext doesn't work on GitHub Markdown that matter to me are that link markup can't span lines, and line breaks show up as hard line breaks.

  3. Gurran commented on May 2, 2019

    @Gurran

    A lot of README.md files contains badges. It would be awesome if you could preview them in the editor.

  4. fxha commented on May 2, 2019

    @fxha
    Contributor

    @Gurran Could you please open another issue for this and link to the relevant readme. E.g. in our readme all badges are rendered.

  5. added
    🐳 help wanted
    on May 7, 2019
  6. Jocs commented on May 7, 2019

    @Jocs
    Member

    @chrisseaton

    that link markup can't span lines

    This bug is already fixed in develop branch and will release in the next version.

    and line breaks show up as hard line breaks.

    I don't think so, we distinguish soft and hard line break in Mark Text, the hard line break has a curving arrow at the line end.

    As CommonMark Spec saied:

    A softbreak may be rendered in HTML either as a line ending or as a space. The result will be the same in browsers. In the examples here, a line ending will be used.)

  7. chrisseaton commented on May 7, 2019

    @chrisseaton

    Sorry about the noise for the link bug if it's already fixed! Does that also apply to *empahsis* that spans lines? I've just noticed that one.

    I don't think so, we distinguish soft and hard line break in Mark Text, the hard line break has a curving arrow at the line end.

    For example, the second paragraph of this section in this document.

    https://github.com/oracle/truffleruby/blob/50c7c018b45430f8beb20375df86bfadbccd3b06/README.md#truffleruby-configurations

    On GitHub it looks like this

    image

    In Mark Text preview it looks like this

    image

    So GitHub is re-flowing my line breaks and Mark Text isn't. I don't know about Markdown standards or who's technically in the right, I just know that as a user who writes GitHub Markdown documents I'd like to be able to preview them as GitHub would, in Mark Text. Maybe that's a new feature request for GitHub compatible line-endings, rather than a bug report, then?

  8. Jocs commented on Jun 26, 2026

    @Jocs
    Member

    Thank you for this request! We want to let you know that GitHub Flavored Markdown (GFM) is now fully supported in MarkText — tables, task lists, strikethrough, autolinks, and all other GFM constructs are rendered correctly in the editor. The HTML export feature (File → Export → HTML) produces a self-contained document styled with github-markdown-css, giving you a GitHub-accurate preview you can open in any browser.

    The line-break behavior discussed in the comments follows the CommonMark specification, which GitHub itself uses as its base standard.

    A dedicated GitHub-styled visual theme for the editor itself was not added. Given that this request is from 2019 and the practical need is addressed by the GFM engine and the HTML export with GitHub styling, we are closing this issue as a stale feature request. If there is still strong interest in a GitHub editor theme, a new issue with specific design requirements would be welcome. Thank you for your support of MarkText!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    🦄 feature request🐳 help wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions