code: public String toHtml(String markup, boolean fixLeadingSpaces) {
          Thread currentThread = Thread.currentThread();
          ClassLoader previousContextClassLoader = currentThread.getContextClassLoader();
          try {
              currentThread.setContextClassLoader(getClass().getClassLoader());
              final MarkdownRepair markdownRepairKit =new MarkdownRepairKit(fixLeadingSpaces);
              if ( processor == null ) {
                  processor = createProcessor();
              }
  
              String markdown = renderMarkdownTags(markdownRepairKit.beforeMarkdownTaglets(markup));
  
              markdown= markdownRepairKit.beforeMarkdownParser(markdown);
              final String html = createDocletSerializer().toHtml(processor.parseMarkdown(markdown.toCharArray()));
              return markdownRepairKit.afterMarkdownParser(html);
          }
          finally {
              currentThread.setContextClassLoader(previousContextClassLoader);
          }
      }
docs: Converts Markdown source to HTML according to this options object. If
  `fixLeadingSpaces` is `true`, exactly one leading whitespace character ('\\u0020')
  will be removed, if it exists.
  
  @todo Find a better way than setting the classloader for Velocity.
  @todo This method doesn't belong here, move it to {@link MarkdownDoclet}.
  
  @param markup           The Markdown source.
  @param fixLeadingSpaces `true` if leading spaces should be fixed.
  
  @return The resulting HTML.