feat: footnote 기능 추가#673
Open
vanillacake369 wants to merge 4 commits into
Open
Conversation
Add remark-footnotes v2 which is compatible with the existing remark v11 / unified v8 ecosystem.
- Add remark-footnotes plugin to remark pipeline (SSR + client) - Enable inline notes syntax (^[inline note]) - Add sup and section to sanitize-html allowed tags - Add footnote styles (separator, backref, superscript ref)
- 5 unit tests: basic, multiple, inline, no-footnote, formatted content - 4 sanitize tests: ref link, content, class preservation, XSS prevention
Standalone HTML page for verifying footnote rendering without requiring backend server setup.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
개요
마크다운 각주 문법(`[^1]`, `^[인라인 각주]`)을 지원합니다.
변경사항
테스트
논의사항
이슈 : remark-footnotes 버전 호환성
remark-footnotes v3+는 unified v10을 요구하여 현재 프로젝트(remark v11 / unified v8)와 호환되지 않습니다. 이로 인해 최신 버전의 기능과 버그 수정을 받을 수 없습니다.
대안
이에 대해 다음과 같은 대안들이 있으며, 현재는 v2.0.0을 선택하여 기존 unified 생태계를 유지하고 있습니다. v2.0.0이 외부 의존성 없이 현재 파이프라인에 바로 통합 가능한 유일한 호환 버전이기 때문입니다.