You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-06-15 23:00:36 +02:00
First pass at linting lib dir
This commit is contained in:
@ -3,7 +3,6 @@ const htmlUtils = require('lib/htmlUtils');
|
||||
const Note = require('lib/models/Note');
|
||||
|
||||
class MarkupLanguageUtils {
|
||||
|
||||
lib_(language) {
|
||||
if (language === Note.MARKUP_LANGUAGE_HTML) return htmlUtils;
|
||||
if (language === Note.MARKUP_LANGUAGE_MARKDOWN) return markdownUtils;
|
||||
@ -13,9 +12,8 @@ class MarkupLanguageUtils {
|
||||
extractImageUrls(language, text) {
|
||||
return this.lib_(language).extractImageUrls(text);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
const markupLanguageUtils = new MarkupLanguageUtils();
|
||||
|
||||
module.exports = markupLanguageUtils;
|
||||
module.exports = markupLanguageUtils;
|
||||
|
Reference in New Issue
Block a user