fix(deps): update dependency textarea-markdown-editor to v1 #121
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.1.13
->1.0.4
Release Notes
Resetand/markdown-textarea
v1.0.4
Compare Source
What's Changed
🆕 Added ordered-list-auto-correct-extension by @Resetand in https://github.com/Resetand/textarea-markdown-editor/pull/15
Option is disabled by default, to enable add
enableOrderedListAutoCorrectExtension: true
optionFull Changelog: Resetand/textarea-markdown-editor@v1.0.3...v1.0.4
v1.0.3
Compare Source
What's Changed
🐞 Prevent URL paste markup handling if selected text is an URL by @Resetand in https://github.com/Resetand/textarea-markdown-editor/pull/14
Full Changelog: Resetand/textarea-markdown-editor@v1.0.2...v1.0.3
v1.0.2
Compare Source
What's Changed
🐞 Fixed paste link which contains dashes in domain causes page freeze #12
🐞 Fixed uncorrent pasting link inside a link markup
Full Changelog: Resetand/textarea-markdown-editor@v1.0.1...v1.0.2
v1.0.1
Compare Source
What's Changed
🆕 Added the ability to trigger custom commands with arguments (eg
ref.trigger('[NAME]', ...args)
) checkout the example here🆕 Extend
TextareaMarkdownRef
by adding bultintCursor
prop (available by usingref.current.cursor
)PS 🤖 made internal internal refactoring: added eslint, prettier and pre-commit hooks
Full Changelog: Resetand/textarea-markdown-editor@v1.0.0...v1.0.1
v1.0.0
Compare Source
What's Changed
Breaking changes ❗
indent
,unindent
,enter
,link-paste
is no longer supported. you can access them by usingoptions
enableIndentExtension
- forindent
/unindent
commandsenableLinkPasteExtension
- forlink-paste
enablePrefixWrappingExtension
- forenter
Cursor
util significantly rewritten, checkout the built-in commands implementations to see a real world examples of usingWELL_KNOWN_COMMANDS
renamed toBUILT_IN_COMMANDS
CommandDefine
type renamed toCommand
Other
options.customPrefixWrapping
, checkout the examplereact 18
as peer-dependenceorder-list
,unordered-list
orquote
markupbootstrapTextareaMarkdown
.Clipboard
apictrl+z
) behavior doesn’t work properlyreact-trigger-change
dependenceCursor
util migration guideCursor.raw
is deprecated. You can use string directly as a parameter for all methodsCursor.getLine(lineNumber?: number): string
→Cursor.lineAt(lineNumber: number): Line | null
Cursor.getIndentSize(lineNumber?: number): number
is deprecated, you can define it byline.text.match(/^\s*/)?.[0].length
Cursor.getCurrentPosition(lineNumber?: number): TextAreaPosition
→Cursor.position: Position
Cursor.getText(): string
→Cursor.value: string
Cursor.setText(text: string): void
→Cursor.setValue(value: string): void
Cursor.getSelected(): string
→Cursor.selection: Selection | null
Cursor.spliceContent
is is deprecated:Cursor.replaceLine([lineNumber], null)
to remove lineCursor.replaceLine([lineNumber], 'new content')
to replace line contentCursor.insert('inserted content')
to insert content at cursor positionCusor.insertPrefix
is deprecatedCursor.replaceLine([lineNumber], 'prefix' + cursor.lineAt([lineNumber]).text)
add prefix for specific lineCursor.replaceCurrentLines((line, index) => '${index + 1}. ${line.text}')
add prefix for all selected lines via callbackCursor.wrapSelected(markup: string): void
andCursor. wrapSingleLineSelected(markup: string): void
is deprecatedCursor.wrap("@​")
to wrap selected content with@
Cursor.wrap(['(', ')'])
to wrap selected content with prefix(
and suffix)
Typing reference:
Checkout the built-in commands implementations to see a real world examples of using
Full Changelog: Resetand/textarea-markdown-editor@v0.1.13...v1.0.0
Configuration
📅 Schedule: Branch creation - "before 3am on Monday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.