Skip to content

Commit

Permalink
chore(markup): added deprecated comment for insertAnchor command (#542)
Browse files Browse the repository at this point in the history
  • Loading branch information
makhnatkin authored Dec 27, 2024
1 parent 5b00492 commit 27cfcda
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/markup/commands/inline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ export const insertLink: StateCommand = ({state, dispatch}) => {
return true;
};

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

0 comments on commit 27cfcda

Please sign in to comment.