BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
1374da4c
Unverified
Commit
1374da4c
authored
Nov 22, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed import of render mermaid & render math methods
parent
48b65bb0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
8 deletions
+5
-8
main.js
app/assets/javascripts/main.js
+0
-2
render_gfm.js
app/assets/javascripts/render_gfm.js
+5
-6
No files found.
app/assets/javascripts/main.js
View file @
1374da4c
...
...
@@ -69,8 +69,6 @@ import './project_import';
import
'./projects_dropdown'
;
import
'./projects_list'
;
import
'./syntax_highlight'
;
import
'./render_math'
;
import
'./render_mermaid'
;
import
'./render_gfm'
;
import
'./right_sidebar'
;
import
'./search'
;
...
...
app/assets/javascripts/render_gfm.js
View file @
1374da4c
/* eslint-disable func-names, space-before-function-paren, consistent-return, no-var, no-else-return, prefer-arrow-callback, max-len */
import
'./render_math'
;
import
'./render_mermaid'
;
// Render Gitlab flavoured Markdown
//
// Delegates to syntax highlight and render math & mermaid diagrams.
//
(
function
()
{
$
.
fn
.
renderGFM
=
function
()
{
$
.
fn
.
renderGFM
=
function
renderGFM
()
{
this
.
find
(
'.js-syntax-highlight'
).
syntaxHighlight
();
this
.
find
(
'.js-render-math'
).
renderMath
();
this
.
find
(
'.js-render-mermaid'
).
renderMermaid
();
return
this
;
};
};
$
(()
=>
$
(
'body'
).
renderGFM
());
}).
call
(
window
);
$
(()
=>
$
(
'body'
).
renderGFM
());
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment