Skip to content

Commit 27cfcda

Browse files
authored
chore(markup): added deprecated comment for insertAnchor command (#542)
1 parent 5b00492 commit 27cfcda

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/markup/commands/inline.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ export const insertLink: StateCommand = ({state, dispatch}) => {
1313
return true;
1414
};
1515

16+
// [major] TODO: remove insertAnchor
1617
const defaultAnchorSnippet = snippet(`#[#{2:text}](#{1:anchor} "#{3:title}")`);
18+
/** @deprecated */
1719
export const insertAnchor: StateCommand = ({state, dispatch}) => {
1820
const {from, to, empty} = state.selection.main;
1921
const anchorSnippet = empty

0 commit comments

Comments
 (0)