aboutsummaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
Diffstat (limited to 'library')
-rw-r--r--library/markdown.php2
-rw-r--r--library/parsedown/Parsedown.php3
2 files changed, 4 insertions, 1 deletions
diff --git a/library/markdown.php b/library/markdown.php
index f548fc26c..0e3275ff2 100644
--- a/library/markdown.php
+++ b/library/markdown.php
@@ -1136,7 +1136,7 @@ class Markdown_Parser {
# Create a code span markup for $code. Called from handleSpanToken.
#
$code = htmlspecialchars(trim($code), ENT_NOQUOTES);
- return $this->hashPart("<code>$code</code>");
+ return $this->hashPart("<code class=\"inline-code\">$code</code>");
}
diff --git a/library/parsedown/Parsedown.php b/library/parsedown/Parsedown.php
index 5edd44843..7b920d730 100644
--- a/library/parsedown/Parsedown.php
+++ b/library/parsedown/Parsedown.php
@@ -1074,6 +1074,9 @@ class Parsedown
'element' => array(
'name' => 'code',
'text' => $text,
+ 'attributes' => array(
+ 'class' => 'inline-code'
+ ),
),
);
}