AZ Tools

Markdown 링크 추출기

텍스트

일반 Markdown 링크 형식 파싱 — `[text](url 'title')`·`![alt](src)`·참조형 `[text][id]`(`[id]: url 'title'`)·autolink `<https://…>` — 각각 `{type, text, url, title}` 행으로 반환. SEO 감사용 아웃바운드 링크 인벤토리·블로그 글에서 사이트맵 구축·docs 폴더 전체 죽은 URL 검사·새 CDN 마이그레이션 전 README 모든 이미지 추출에 유용.

유형텍스트URL제목
이미지alt texthttps://example.com/cat.pngCute cat
링크a regular linkhttps://example.comExample homepage
링크docshttps://docs.example.com
링크helphttps://help.example.comHelp center
링크https://example.orghttps://example.org

출력 (5 항목)

type,text,url,title
image,alt text,https://example.com/cat.png,Cute cat
link,a regular link,https://example.com,Example homepage
link,docs,https://docs.example.com,
link,help,https://help.example.com,Help center
link,https://example.org,https://example.org,

참조 링크는 동일 문서의 `[id]: url` 정의로 해결. `<>`로 감싸지 않은 베어 URL은 건너뜀.

사용법

  1. Markdown 문서/섹션 붙여넣기.
  2. 이미지(`![…](…)`) 포함 여부 토글.
  3. CSV·JSON·Markdown 목록 출력 선택; 다운스트림 도구에 복사.

자주 묻는 질문

어떤 링크 문법 인식?
인라인 `[text](url)`·옵션 `"title"`·`'title'`; 참조 `[text][id]`(`[id]: url "title"` 정의로 해결); 단축 `[text][]`; 이미지 등가물(`!` 접두사); HTML 스타일 autolink `<https://…>`. `<>`로 감싸지 않은 베어 URL은 CommonMark에서 모호하므로 의도적으로 건너뜀.
출력에 링크가 없는 이유?
흔한 이유: URL이 여러 줄에 걸침(Markdown 금지)·`]`과 `(` 사이에 공백·참조 링크의 정의 ID가 다름. 인식 집합은 CommonMark 느슨한 규칙 따르지만 완전한 파서는 아님.
URL 페치?
아니요 — 텍스트에 있는 것만 추출. 링크 살아있는지 확인은 출력을 링크 체커(`lychee`·`markdown-link-check`·선호하는 Node 도구)에 파이프.
코드 블록 안의 Markdown은?
파서는 펜스 코드 블록을 건너뛰지 않으므로 ``` ``` ``` 안의 `[example](https://x)`도 잡힘. 입력에 문제 되면 `sed`나 Markdown AST 도구로 코드 블록 먼저 제거.

관련 도구