Support for Github API as custom processor

greg's Avatar

greg

11 Jan, 2014 11:53 AM

It would be great is Marked 2 supported the Github API as a custom processor the same way the ST package Markdown Preview does. Marked itself gets pretty close but does a couple of things differently. Marked, for example, uses embeds javascript to highlight code whereas github formats the HTML in the conversion process and uses css to highlight the html.

Markdown preview:
https://sublime.wbond.net/packages/Markdown%20Preview

  1. 1 Posted by greg on 11 Jan, 2014 11:55 AM

    greg's Avatar

    another example: github formats the ids of headings differently. Using the github API would just create 100% compatibility.

  2. Support Staff 2 Posted by Brett on 11 Jan, 2014 12:42 PM

    Brett's Avatar

    Using the Github API is too slow to provide satisfactory results, and
    you run into size limits. You can easily set it up as a custom
    processor, though. Either through the API:
    http://developer.github.com/v3/markdown/ or with Docter:
    https://github.com/alampros/Docter

    -Brett

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

Generic

? 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