MDX 설명에서 JSX 요소 제거 기능 추가 #7
Merged
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.
JSX 요소는 jsdoc 에서 사용하는 Markdown 파서로 제대로 파싱할 수 없기 때문에,
browser_sdk_utils
크레이트를 도입해 파라미터 description에서 Markdown AST를 직접 파싱한 뒤 JSX 노드를 제거하도록 구현했습니다.현재는 non-ASCII 문자 처리 문제 때문에 포크한
markdown
mdast_util_to_markdown
크레이트를 임시로 사용하고 있습니다.위 이슈를 해결하는 PR wooorm/markdown-rs#181 이 머지되고 새 버전이 배포되면, 포크 대신 공식 패키지로 교체할 예정입니다.