Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
1374da4c
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
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
12 deletions
+9
-12
app/assets/javascripts/main.js
app/assets/javascripts/main.js
+0
-2
app/assets/javascripts/render_gfm.js
app/assets/javascripts/render_gfm.js
+9
-10
No files found.
app/assets/javascripts/main.js
View file @
1374da4c
...
@@ -69,8 +69,6 @@ import './project_import';
...
@@ -69,8 +69,6 @@ import './project_import';
import
'
./projects_dropdown
'
;
import
'
./projects_dropdown
'
;
import
'
./projects_list
'
;
import
'
./projects_list
'
;
import
'
./syntax_highlight
'
;
import
'
./syntax_highlight
'
;
import
'
./render_math
'
;
import
'
./render_mermaid
'
;
import
'
./render_gfm
'
;
import
'
./render_gfm
'
;
import
'
./right_sidebar
'
;
import
'
./right_sidebar
'
;
import
'
./search
'
;
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
// Render Gitlab flavoured Markdown
//
//
// Delegates to syntax highlight and render math & mermaid diagrams.
// Delegates to syntax highlight and render math & mermaid diagrams.
//
//
(
function
()
{
$
.
fn
.
renderGFM
=
function
renderGFM
()
{
$
.
fn
.
renderGFM
=
function
()
{
this
.
find
(
'
.js-syntax-highlight
'
).
syntaxHighlight
();
this
.
find
(
'
.js-syntax-highlight
'
).
syntaxHighlight
();
this
.
find
(
'
.js-render-math
'
).
renderMath
();
this
.
find
(
'
.js-render-math
'
).
renderMath
();
this
.
find
(
'
.js-render-mermaid
'
).
renderMermaid
();
this
.
find
(
'
.js-render-mermaid
'
).
renderMermaid
();
return
this
;
return
this
;
};
};
$
(()
=>
$
(
'
body
'
).
renderGFM
());
$
(()
=>
$
(
'
body
'
).
renderGFM
());
}).
call
(
window
);
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