zeplin-extension-documentation icon indicating copy to clipboard operation
zeplin-extension-documentation copied to clipboard

Support for rendered markup

Open josephnle opened this issue 6 years ago • 3 comments

Are there any plans to support rendered markup? Perhaps Markdown or HTML?

I'm trying to make an extension that will a set of textual information. It'd be nice to add at least some basic styling to this such as italics or bolding.

I've thought about doing a workaround by creating a "code" snippet to achieve the coloring. However, I don't see any documentation about supported languages. I only see an example specifying javascript and swift.

Thanks!

josephnle avatar Apr 06 '18 21:04 josephnle

Hey @josephnle, that definitely makes sense. We could do that for plain text responses actually, if you simply return a string, instead of a code object (with language and code). We'll brainstorm on this to think about some alternative solution—we might even adjust the UI to fit that as well.

Zeplin uses Prism to highlight these snippets by the way, so the list of supported languages is here: http://prismjs.com/#languages-list Will make sure to add that to the docs.

You can try using the markdown language for now. It won't adjust the appearance of the text obviously but it will at least color it as a markdown snippet.

berkcebi avatar Apr 06 '18 22:04 berkcebi

@berkcebi Thanks for the quick response!

Markdown definitely seems like a promising workaround for now. Excited to see how all of this will evolve! 😄

josephnle avatar Apr 06 '18 22:04 josephnle

Are there any plans to add qml as a supported language? The QML Extension has no syntax highlighting although Prism seems to support it.

fabiradi avatar Nov 24 '20 14:11 fabiradi