INNER CODE UNIT · JavaScript

loadMarkdown

DavidAnson/markdownlint · demo/default.js:172

  function loadMarkdown(source) {
    // Reset input element
    form.reset();
    if (typeof source === "string") {
      // Update from string
      markdown.value = source;
      onMarkdownInput();
    } else {
      // Update from File object
      source.text().then((text) => {
        markdown.value = text;
        onMarkdownInput();
      });
    }
  }

  // Handle drag-and-drop
  function onDragOver(e) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…