Skip to content
This repository has been archived by the owner on Jun 4, 2022. It is now read-only.

Commit

Permalink
fix(*): break long link and support inline mathjax
Browse files Browse the repository at this point in the history
  • Loading branch information
ppoffice committed May 1, 2019
1 parent 177aeaf commit 1c7958b
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 3 deletions.
18 changes: 15 additions & 3 deletions layout/plugins/mathjax.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,21 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/MathJax.js?config=TeX-MML-AM_CHTML"></script>
<script>
MathJax.Hub.Config({
"HTML-CSS": {matchFontHeight: false},
SVG: {matchFontHeight: false},
CommonHTML: {matchFontHeight: false}
"HTML-CSS": {
matchFontHeight: false
},
SVG: {
matchFontHeight: false
},
CommonHTML: {
matchFontHeight: false
},
tex2jax: {
inlineMath: [
['$','$'],
['\\(','\\)']
]
}
});
</script>
<% } %>
18 changes: 18 additions & 0 deletions source/css/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ a.tag.article-tag {
right: 100%;
}
}

a {
word-break: break-word;
}
}

.article-more-link a {
Expand Down Expand Up @@ -608,4 +612,18 @@ figure.highlight {
}
}

.video-container {
width: 100%;
margin-bottom: 20px;
padding-top: 56.25%;
position: relative;
iframe {
top: 0px;
left: 0px;
width: 100%;
height: 100%;
position: absolute;
}
}

@import "insight";

1 comment on commit 1c7958b

@ppoffice
Copy link
Owner

@ppoffice ppoffice commented on 1c7958b May 1, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.