You are here

function Markdown_Parser::makeCodeSpan in Markdown 5

Same name and namespace in other branches
  1. 6 markdown.php \Markdown_Parser::makeCodeSpan()
1 call to Markdown_Parser::makeCodeSpan()
Markdown_Parser::handleSpanToken in ./markdown.php

File

./markdown.php, line 1105

Class

Markdown_Parser

Code

function makeCodeSpan($code) {

  #

  # Create a code span markup for $code. Called from handleSpanToken.

  #
  $code = htmlspecialchars(trim($code), ENT_NOQUOTES);
  return $this
    ->hashPart("<code>{$code}</code>");
}