code: def render_title(text, markup=True, no_smartquotes=False):
      
  
      # HACK: If the title starts with something that looks like a list, save it
      # for later
      pfx, text = re.match(r'([0-9. ]*)(.*)', text).group(1, 2)
      text = pfx + misaka.Markdown(TitleRenderer(),
                                   extensions=TITLE_EXTENSIONS)(text)
  
      if not markup:
          strip = HTMLStripper()
          strip.feed(text)
          text = strip.get_data()
  
      if not no_smartquotes:
          text = misaka.smartypants(text)
  
      return flask.Markup(text)
docs: Convert a Markdown title to HTML