Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed up code coloring

  • Loading branch information...
commit dd1402f04ca8ace62d4bdafa4069ae977740f578 1 parent 5560867
@vsedach authored
Showing with 2 additions and 3 deletions.
  1. +0 −1  TODO
  2. +1 −1  src/markup.lisp
  3. +1 −1  static/css/style.css
View
1  TODO
@@ -1,2 +1 @@
-* make sure code coloring is specified properly and works
* make sure email works
View
2  src/markup.lisp
@@ -84,7 +84,7 @@
#'> :key #'length)))
(defun colorize-code (markup)
(ppcre:regex-replace-all
- "<code(.*?)?>(.*?)</code>" markup
+ "<code(.*?)?>((?:.|\\n)*?)</code>" markup
(lambda (match maybe-lang code)
(declare (ignore match))
(let ((lang (loop for lang in supported-langs
View
2  static/css/style.css
@@ -248,7 +248,7 @@
margin-top: 20px;
}
-pre, pre *, .code, .code * { font-family: monospace; }
+pre, pre *, code, .code, .code * { font-family: monospace; }
#pagehistory {
background:none;
Please sign in to comment.
Something went wrong with that request. Please try again.