microsoft / microsoft/vscode-markdown-notebook
extendMarkdownIt not work
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 88
- Forks
- 19
- Avg merge
- 3d 8h
- Merged PRs (30d)
- 3
Description
It is indeed called when debugging, but it has no effect
// extendMarkdownIt.ts
export default function (md: any) {
md.options.replaceLink = (link: string, env: any) => {
return './1.png'
};
return md.use(require("markdown-it-replace-link"));
}
my markdown file

Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with extendMarkdownIt.ts and reproduce the behavior using the markdown file shown with . Trace how the markdown-it extension is applied and verify whether the rendered image link is changed to ./1.png; the issue is done when that replacement takes effect.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- markdown, typescript
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100