aboutsummaryrefslogtreecommitdiffhomepage
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/markdown/markdown.css7
-rw-r--r--plugins/markdown/markdown.php19
2 files changed, 26 insertions, 0 deletions
diff --git a/plugins/markdown/markdown.css b/plugins/markdown/markdown.css
index 3c1b2aeb..6789ce84 100644
--- a/plugins/markdown/markdown.css
+++ b/plugins/markdown/markdown.css
@@ -143,6 +143,13 @@
143 hyphens: none; 143 hyphens: none;
144} 144}
145 145
146.markdown :not(pre) code {
147 background-color: #eee;
148 padding: 1px 3px;
149 border-radius: 1px;
150 box-shadow: 0 -1px 0 #e5e5e5,0 0 1px rgba(0,0,0,0.12),0 1px 1px rgba(0,0,0,0.24);
151}
152
146.md_help { 153.md_help {
147 color: white; 154 color: white;
148} 155}
diff --git a/plugins/markdown/markdown.php b/plugins/markdown/markdown.php
index 544ed22e..57fcce32 100644
--- a/plugins/markdown/markdown.php
+++ b/plugins/markdown/markdown.php
@@ -34,6 +34,25 @@ function hook_markdown_render_linklist($data)
34} 34}
35 35
36/** 36/**
37 * Parse feed linklist descriptions.
38 *
39 * @param array $data linklist data.
40 *
41 * @return mixed linklist data parsed in markdown (and converted to HTML).
42 */
43function hook_markdown_render_feed($data)
44{
45 foreach ($data['links'] as &$value) {
46 if (!empty($value['tags']) && noMarkdownTag($value['tags'])) {
47 continue;
48 }
49 $value['description'] = process_markdown($value['description']);
50 }
51
52 return $data;
53}
54
55/**
37 * Parse daily descriptions. 56 * Parse daily descriptions.
38 * 57 *
39 * @param array $data daily data. 58 * @param array $data daily data.