zeplin-extension-documentation
zeplin-extension-documentation copied to clipboard
Support for rendered markup
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!
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 Thanks for the quick response!
Markdown definitely seems like a promising workaround for now. Excited to see how all of this will evolve! 😄
Are there any plans to add qml
as a supported language? The QML Extension has no syntax highlighting although Prism seems to support it.