Update markdown rendering in code and slide
This commit is contained in:
parent
38803195a3
commit
7e00d444c0
@ -1,6 +1,7 @@
|
|||||||
.markdown_main() {
|
.markdown_main() {
|
||||||
blockquote {
|
blockquote {
|
||||||
background: #e5e5e5;
|
background: #e5e5e5;
|
||||||
|
background: rgba(128,128,128,0.5);
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
border-left: 3px solid #999;
|
border-left: 3px solid #999;
|
||||||
padding-right: 0;
|
padding-right: 0;
|
||||||
|
|||||||
@ -63,10 +63,31 @@
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
border-left: 1px solid black;
|
border-left: 1px solid black;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
font-family: Calibri,Ubuntu,sans-serif;
|
//font-family: Calibri,Ubuntu,sans-serif;
|
||||||
|
font: @colortheme_app-font;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
position: relative;
|
position: relative;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
h1, h2, h3, h4, h5, h6 {
|
||||||
|
font-weight: bold;
|
||||||
|
padding-bottom: 0.3em;
|
||||||
|
border-bottom: 1px solid #eee;
|
||||||
|
}
|
||||||
|
li {
|
||||||
|
min-height: 22px;
|
||||||
|
}
|
||||||
|
.todo-list-item {
|
||||||
|
list-style: none;
|
||||||
|
.fa {
|
||||||
|
position: absolute;
|
||||||
|
margin-left: -17px;
|
||||||
|
margin-top: 4px;
|
||||||
|
&.fa-check-square {
|
||||||
|
font-size: 15px;
|
||||||
|
margin-top: 5px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
media-tag {
|
media-tag {
|
||||||
* {
|
* {
|
||||||
max-width:100%;
|
max-width:100%;
|
||||||
|
|||||||
@ -53,22 +53,22 @@ define([
|
|||||||
var hasBogusInput = bogusCheckPtn.test(text);
|
var hasBogusInput = bogusCheckPtn.test(text);
|
||||||
if (isCheckedTaskItem) {
|
if (isCheckedTaskItem) {
|
||||||
text = text.replace(checkedTaskItemPtn,
|
text = text.replace(checkedTaskItemPtn,
|
||||||
'<i class="fa fa-check-square" aria-hidden="true"></i> ') + '\n';
|
'<i class="fa fa-check-square" aria-hidden="true"></i>') + '\n';
|
||||||
}
|
}
|
||||||
if (isUncheckedTaskItem) {
|
if (isUncheckedTaskItem) {
|
||||||
text = text.replace(uncheckedTaskItemPtn,
|
text = text.replace(uncheckedTaskItemPtn,
|
||||||
'<i class="fa fa-square-o" aria-hidden="true"></i> ') + '\n';
|
'<i class="fa fa-square-o" aria-hidden="true"></i>') + '\n';
|
||||||
}
|
}
|
||||||
if (!isCheckedTaskItem && !isUncheckedTaskItem && hasBogusInput) {
|
if (!isCheckedTaskItem && !isUncheckedTaskItem && hasBogusInput) {
|
||||||
if (/checked/.test(text)) {
|
if (/checked/.test(text)) {
|
||||||
text = text.replace(bogusCheckPtn,
|
text = text.replace(bogusCheckPtn,
|
||||||
'<i class="fa fa-check-square" aria-hidden="true"></i> ') + '\n';
|
'<i class="fa fa-check-square" aria-hidden="true"></i>') + '\n';
|
||||||
} else if (/disabled/.test(text)) {
|
} else if (/disabled/.test(text)) {
|
||||||
text = text.replace(bogusCheckPtn,
|
text = text.replace(bogusCheckPtn,
|
||||||
'<i class="fa fa-square-o" aria-hidden="true"></i> ') + '\n';
|
'<i class="fa fa-square-o" aria-hidden="true"></i>') + '\n';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var cls = (isCheckedTaskItem || isUncheckedTaskItem) ? ' class="todo-list-item"' : '';
|
var cls = (isCheckedTaskItem || isUncheckedTaskItem || hasBogusInput) ? ' class="todo-list-item"' : '';
|
||||||
return '<li'+ cls + '>' + text + '</li>\n';
|
return '<li'+ cls + '>' + text + '</li>\n';
|
||||||
};
|
};
|
||||||
renderer.image = function (href, title, text) {
|
renderer.image = function (href, title, text) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user