mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-29 14:36:07 +10:00
Use highlight helper to render badges code syntax
This commit is contained in:
@@ -9,12 +9,12 @@
|
||||
.row
|
||||
.col-md-2.text-center
|
||||
Markdown
|
||||
.col-md-10
|
||||
= markdown("```markdown\n#{@badge.to_markdown}\n```")
|
||||
.col-md-10.code.js-syntax-highlight
|
||||
= highlight('.md', @badge.to_markdown)
|
||||
.row
|
||||
%hr
|
||||
.row
|
||||
.col-md-2.text-center
|
||||
HTML
|
||||
.col-md-10
|
||||
= markdown("```html\n#{@badge.to_html}\n```")
|
||||
.col-md-10.code.js-syntax-highlight
|
||||
= highlight('.html', @badge.to_html)
|
||||
|
||||
Reference in New Issue
Block a user