This repository has been archived by the owner on Nov 23, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changed the usage from our own types to the types of the plugin
Signed-off-by: Philip Molares <[email protected]>
- Loading branch information
Showing
8 changed files
with
7 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +0,0 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) | ||
* | ||
* SPDX-License-Identifier: AGPL-3.0-only | ||
*/ | ||
|
||
declare module 'markdown-it-toc-done-right' { | ||
import MarkdownIt from 'markdown-it/lib' | ||
import { TocOptions } from './interface' | ||
const markdownItTocDoneRight: MarkdownIt.PluginWithOptions<TocOptions> | ||
export = markdownItTocDoneRight | ||
} | ||
25 changes: 0 additions & 25 deletions
25
src/external-types/markdown-it-toc-done-right/interface.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +0,0 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) | ||
* | ||
* SPDX-License-Identifier: AGPL-3.0-only | ||
*/ | ||
|
||
export interface TocOptions { | ||
placeholder: string | ||
slugify: (s: string) => string | ||
containerClass: string | ||
containerId: string | ||
listClass: string | ||
itemClass: string | ||
linkClass: string | ||
level: number | number[] | ||
listType: 'ol' | 'ul' | ||
format: (s: string) => string | ||
callback: (tocCode: string, ast: TocAst) => void | ||
} | ||
|
||
export interface TocAst { | ||
l: number | ||
n: string | ||
c: TocAst[] | ||
} | ||