Projects:Style labels with Markdown/Technical Documentation
Introduction
The new enyo kind 'OB.UI.MarkdownLabel' it is a visual component that uses internally Markdown to display
Example
To use 'OB.UI.MarkdownLabel' is very simple, just set the 'content' property with a text with valid Markdown syntax.
For example the component:
enyo.kind({ kind: 'OB.UI.MarkdownLabel', content: '# Title\n' + '* One list element\n' + '* Other list element with *some* **formatting**.' });
Is rendered this way:
Markdown documentation
- The Markdown library used in 'OB.UI.MarkdownLabel' component is https://github.com/evilstreak/markdown-js
- Markdown syntax specification
- Markdown cheatsheet