You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-29 22:48:10 +02:00
Chore: Apply eslint no-unused-vars eslint config and add TypeScript config
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
function installRule(markdownIt, mdOptions, ruleOptions) {
|
||||
function installRule(markdownIt) {
|
||||
const defaultRender =
|
||||
markdownIt.renderer.rules.code_inline ||
|
||||
function(tokens, idx, options, env, self) {
|
||||
|
||||
@@ -194,7 +194,7 @@ function math_block(state, start, end, silent) {
|
||||
let assetsLoaded_ = false;
|
||||
let cache_ = {};
|
||||
|
||||
module.exports = function(context, ruleOptions) {
|
||||
module.exports = function(context) {
|
||||
// Keep macros that persist across Katex blocks to allow defining a macro
|
||||
// in one block and re-using it later in other blocks.
|
||||
// https://github.com/laurent22/joplin/issues/1105
|
||||
|
||||
@@ -4,7 +4,7 @@ const utils = require('../../utils');
|
||||
const urlUtils = require('lib/urlUtils.js');
|
||||
|
||||
function installRule(markdownIt, mdOptions, ruleOptions) {
|
||||
markdownIt.renderer.rules.link_open = function(tokens, idx, options, env, self) {
|
||||
markdownIt.renderer.rules.link_open = function(tokens, idx) {
|
||||
const token = tokens[idx];
|
||||
let href = utils.getAttr(token.attrs, 'href');
|
||||
const resourceHrefInfo = urlUtils.parseResourceUrl(href);
|
||||
|
||||
Reference in New Issue
Block a user