##// END OF EJS Templates
#12 Fixed formatting of comments and links. Added a style for target post in the white theme.
neko259 -
r62:0e0d3099 default
parent child Browse files
Show More
@@ -53,11 +53,11 b' class CommentPattern(Pattern):'
53
53
54
54
55 class NeboardMarkdown(markdown.Extension):
55 class NeboardMarkdown(markdown.Extension):
56 AUTOLINK_PATTERN = r'(http://\S+)'
56 AUTOLINK_PATTERN = r'(https?://\S+)'
57 QUOTE_PATTERN = r'(>){1}(.+)'
57 QUOTE_PATTERN = r'^(>){1}(.+)'
58 REFLINK_PATTERN = r'((>){2}(\d+))'
58 REFLINK_PATTERN = r'((>){2}(\d+))'
59 SPOILER_PATTERN = r'%%(.+)%%'
59 SPOILER_PATTERN = r'%%(.+)%%'
60 COMMENT_PATTERN = r'(//(.+))'
60 COMMENT_PATTERN = r'^(//(.+))'
61
61
62 def extendMarkdown(self, md, md_globals):
62 def extendMarkdown(self, md, md_globals):
63 autolink = AutolinkPattern(self.AUTOLINK_PATTERN, md)
63 autolink = AutolinkPattern(self.AUTOLINK_PATTERN, md)
@@ -196,4 +196,8 b' a:hover {'
196
196
197 .post:target {
197 .post:target {
198 border: solid 2px white;
198 border: solid 2px white;
199 }
200
201 pre{
202 white-space:pre-wrap
199 } No newline at end of file
203 }
@@ -211,4 +211,10 b' a {'
211 .last-replies > .post:last-child {
211 .last-replies > .post:last-child {
212 border-bottom: none;
212 border-bottom: none;
213 padding-bottom: 0;
213 padding-bottom: 0;
214 }
215
216 :target .post_id {
217 background: #182F6F;
218 color: #FFF;
219 text-decoration: none;
214 } No newline at end of file
220 }
General Comments 0
You need to be logged in to leave comments. Login now