Gathering detailed insights and metrics for @codemirror/lang-markdown
Gathering detailed insights and metrics for @codemirror/lang-markdown
Gathering detailed insights and metrics for @codemirror/lang-markdown
Gathering detailed insights and metrics for @codemirror/lang-markdown
Markdown language support for the CodeMirror code editor
npm install @codemirror/lang-markdown
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
76 Stars
134 Commits
28 Forks
8 Watching
1 Branches
3 Contributors
Updated on 06 Nov 2024
Minified
Minified + Gzipped
TypeScript (100%)
Cumulative downloads
Total Downloads
Last day
-8.7%
44,454
Compared to previous day
Last week
0.3%
260,479
Compared to previous week
Last month
17.1%
1,128,582
Compared to previous month
Last year
110.9%
9,847,511
Compared to previous year
[ WEBSITE | ISSUES | FORUM | CHANGELOG ]
This package implements Markdown language support for the CodeMirror code editor.
The project page has more information, a number of examples and the documentation.
This code is released under an MIT license.
We aim to be an inclusive, welcoming community. To make that explicit, we have a code of conduct that applies to communication around the project.
markdown(config?: Object = {}) → LanguageSupport
Markdown language support.
config
defaultCodeLanguage?: Language | LanguageSupport
When given, this language will be used by default to parse code blocks.
codeLanguages?: readonly LanguageDescription[] | fn(info: string) → Language | LanguageDescription | null
A source of language support for highlighting fenced code
blocks. When it is an array, the parser will use
LanguageDescription.matchLanguageName
with the fenced code info to find a matching language. When it
is a function, will be called with the info string and may
return a language or LanguageDescription
object.
addKeymap?: boolean
Set this to false to disable installation of the Markdown keymap.
extensions?: MarkdownExtension
Markdown parser extensions to add to the parser.
base?: Language
The base language to use. Defaults to
commonmarkLanguage
.
completeHTMLTags?: boolean
By default, the extension installs an autocompletion source that
completes HTML tags when a <
is typed. Set this to false to
disable this.
htmlTagLanguage?: LanguageSupport
By default, HTML tags in the document are handled by the HTML language package with tag matching turned off. You can pass in an alternative language configuration here if you want.
markdownLanguage: Language
Language support for GFM plus subscript, superscript, and emoji syntax.
commonmarkLanguage: Language
Language support for strict CommonMark.
insertNewlineContinueMarkup: StateCommand
This command, when invoked in Markdown context with cursor selection(s), will create a new line with the markup for blockquotes and lists that were active on the old line. If the cursor was directly after the end of the markup for the old line, trailing whitespace and list markers are removed from that line.
The command does nothing in non-Markdown context, so it should not be used as the only binding for Enter (even in a Markdown document, HTML and code regions might use a different language).
deleteMarkupBackward: StateCommand
This command will, when invoked in a Markdown context with the cursor directly after list or blockquote markup, delete one level of markup. When the markup is for a list, it will be replaced by spaces on the first invocation (a further invocation will delete the spaces), to make it easy to continue a list.
When not after Markdown block markup, this command will return false, so it is intended to be bound alongside other deletion commands, with a higher precedence than the more generic commands.
markdownKeymap: readonly KeyBinding[]
A small keymap with Markdown-specific bindings. Binds Enter to
insertNewlineContinueMarkup
and Backspace to
deleteMarkupBackward
.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
5 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 4
Reason
Found 1/30 approved changesets -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More