mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 22:10:13 +01:00
chore: Use ESLint overrides for config (#348)
This commit is contained in:
parent
a9d25b04ac
commit
0c309c63c1
4 changed files with 36 additions and 6 deletions
|
|
@ -1,7 +1,5 @@
|
|||
"use strict";
|
||||
|
||||
/* eslint-disable jsdoc/require-jsdoc */
|
||||
|
||||
(function main() {
|
||||
// DOM elements
|
||||
var markdown = document.getElementById("markdown");
|
||||
|
|
@ -166,7 +164,7 @@
|
|||
|
||||
// Show library version
|
||||
document.getElementById("version").textContent =
|
||||
"(v" + markdownlint.getVersion() + ")";
|
||||
"(v" + window.markdownlint.getVersion() + ")";
|
||||
|
||||
// Add event listeners
|
||||
document.body.addEventListener("dragover", onDragOver);
|
||||
|
|
@ -208,7 +206,7 @@
|
|||
// Update Markdown from hash (if present)
|
||||
if (window.location.hash) {
|
||||
try {
|
||||
const decodedHash = decodeURIComponent(window.location.hash.substring(1));
|
||||
var decodedHash = decodeURIComponent(window.location.hash.substring(1));
|
||||
if (hashPrefix === decodedHash.substring(0, hashPrefix.length)) {
|
||||
markdown.value = decodedHash.substring(hashPrefix.length);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue