Syntax Highlight
/src/sample/demo.md
js
new Vue({
el: '#editor',
data: {
input: '# hello'
},
filters: {
marked: marked
}
})
jsx
var HelloMessage = React.createClass({
render: function() {
return <div>Hello {this.props.name}</div>;
}
});
ReactDOM.render(<HelloMessage name="John" />, mountNode);
html
<a class="ag-btn">Button</a>
<button class="ag-btn ag-btn--primary">Button</button>
ejs
<a class="ag-btn"><%- name %></a>
<button class="ag-btn ag-btn--primary"><%- name %></button>
jade
a.ag-btn
!= name
button.ag-btn.ag-btn--primary
!= name
hbs
{{include './button.html'}}
<hr>
<a class="ag-btn">{{name}}</a>
<button class="ag-btn ag-btn--primary">{{name}}</button>