code: def _get_markup(self, text, is_markdown, **kwargs):
          
          if is_markdown:
              return markdown.to_html(
                  text,
                  config=kwargs,
                  search_path=self.search_path)
  
          return html_entry.process(
              text,
              config=kwargs,
              search_path=self.search_path)
docs: get the rendered markup for an entry
  
              is_markdown -- whether the entry is formatted as Markdown
              kwargs -- parameters to pass to the Markdown processor