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
Léo-Paul Géneau
gitlab-ce
Commits
11f8940b
Commit
11f8940b
authored
Mar 28, 2018
by
Mike Greiling
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'min-is-better' into 'master'
Use katex min css See merge request gitlab-org/gitlab-ce!18061
parents
fe5f7390
d79f3957
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/assets/javascripts/behaviors/markdown/render_math.js
app/assets/javascripts/behaviors/markdown/render_math.js
+1
-1
config/webpack.config.js
config/webpack.config.js
+1
-1
No files found.
app/assets/javascripts/behaviors/markdown/render_math.js
View file @
11f8940b
...
...
@@ -31,7 +31,7 @@ export default function renderMath($els) {
if
(
!
$els
.
length
)
return
;
Promise
.
all
([
import
(
/* webpackChunkName: 'katex' */
'
katex
'
),
import
(
/* webpackChunkName: 'katex' */
'
katex/dist/katex.css
'
),
import
(
/* webpackChunkName: 'katex' */
'
katex/dist/katex.
min.
css
'
),
]).
then
(([
katex
])
=>
{
renderWithKaTeX
(
$els
,
katex
);
}).
catch
(()
=>
flash
(
__
(
'
An error occurred while rendering KaTeX
'
)));
...
...
config/webpack.config.js
View file @
11f8940b
...
...
@@ -104,7 +104,7 @@ const config = {
},
},
{
test
:
/katex.css$/
,
test
:
/katex.
min.
css$/
,
include
:
/node_modules
\/
katex
\/
dist/
,
use
:
[
{
loader
:
'
style-loader
'
},
...
...
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