This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
youys
/
DocNet
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
14
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
Added 'alert tip' support, so it's now possible to create an alert box which is green and shows 'tip' instead of info/danger/important/warning
tags/0.13
Frans Bouma
10 years ago
parent
9eeef2868f
commit
d69c9f87e9
4 changed files
with
22 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+9
-0
Themes/Default/Destination/css/theme_colors.css
+4
-0
src/MarkdownDeep/Block.cs
+5
-0
src/MarkdownDeepTests/testfiles/docnetmode/Alert(DocNetMode).html
+4
-0
src/MarkdownDeepTests/testfiles/docnetmode/Alert(DocNetMode).txt
+ 9
- 0
Themes/Default/Destination/css/theme_colors.css
View File
@@ -108,6 +108,15 @@ mark {
.alert.alert-neutral a {
color: #2980B9;
}
.alert.alert-tip {
background:#dbfaf4;
}
.alert.alert-tip .alert-title {
background:#1abc9c;
}
/* #endregion*/
/* #region Tables*/
+ 4
- 0
src/MarkdownDeep/Block.cs
View File
@@ -520,6 +520,10 @@ namespace MarkdownDeep
title = "Info";
faIconName = "info-circle";
break;
case "tip":
title = "Tip";
faIconName = "info-circle";
break;
}
b.Append("<div class=\"alert alert-");
b.Append(alertTypeClass);
+ 5
- 0
src/MarkdownDeepTests/testfiles/docnetmode/Alert(DocNetMode).html
View File
@@ -25,4 +25,9 @@
<p>@alert
This is an info text, it will be displayed in an info alert box!
@end</p>
<div class="alert alert-tip">
<span class="alert-title"><i class="fa fa-info-circle"></i>Tip</span><p>This is a tip, whether you like it or not!</p>
</div>
<p>post</p>
+ 4
- 0
src/MarkdownDeepTests/testfiles/docnetmode/Alert(DocNetMode).txt
View File
@@ -25,4 +25,8 @@ This is an **info text**, it will be displayed in an info alert box!
This is an info text, it will be displayed in an info alert box!
@end
@alert tip
This is a tip, whether you like it or not!
@end
post
Write
Preview
Loading…
Cancel
Save