Use highlight helper to render badges code syntax
This commit is contained in:
parent
58d63a66a0
commit
dffdb0d036
1 changed files with 4 additions and 4 deletions
|
@ -9,12 +9,12 @@
|
||||||
.row
|
.row
|
||||||
.col-md-2.text-center
|
.col-md-2.text-center
|
||||||
Markdown
|
Markdown
|
||||||
.col-md-10
|
.col-md-10.code.js-syntax-highlight
|
||||||
= markdown("```markdown\n#{@badge.to_markdown}\n```")
|
= highlight('.md', @badge.to_markdown)
|
||||||
.row
|
.row
|
||||||
%hr
|
%hr
|
||||||
.row
|
.row
|
||||||
.col-md-2.text-center
|
.col-md-2.text-center
|
||||||
HTML
|
HTML
|
||||||
.col-md-10
|
.col-md-10.code.js-syntax-highlight
|
||||||
= markdown("```html\n#{@badge.to_html}\n```")
|
= highlight('.html', @badge.to_html)
|
||||||
|
|
Loading…
Reference in a new issue