muravjev / repro-remark-shortcuts

remark shortcuts issue repro

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Prerequisites

  1. We have a link shortcuts at the end of a file:
[link1]: any
[link2]: any
  1. After running remark:
remark --output -- .
  1. Newlines are added between shortcuts:
[link1]: any

[link2]: any

diff: https://github.com/muravjev/repro_remark_shortcuts/compare/e6a60c6...2cf76bd

Question

Is it possible to prevent such behavior?

Reproduction

repo: https://github.com/muravjev/repro_remark_shortcuts

git clone https://github.com/muravjev/repro_remark_shortcuts.git
cd repro_remark_shortcuts
pnpm install
pnpm repro

About

remark shortcuts issue repro