INNER CODE UNIT · JavaScript

noop

DavidAnson/markdownlint · demo/default.js:24

  function noop() {}

  // Sanitize string for HTML display
  function sanitize(str) {
    return str
      .replace(/&/g, "&")
      .replace(/</g, "&lt;")
      .replace(/>/g, "&gt;");
  }

  // Renders directive metadata
  function handleDirective(directive) {
    const content = directive.content;
    delete directive.content;
    if (content) {
      this.tag("<blockquote>");
    }
    this.tag("<code>");

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…