Skip to content

MDX 설명에서 JSX 요소 제거 기능 추가 #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 18, 2025

Conversation

CirnoV
Copy link
Member

@CirnoV CirnoV commented Jun 16, 2025

JSX 요소는 jsdoc 에서 사용하는 Markdown 파서로 제대로 파싱할 수 없기 때문에, browser_sdk_utils 크레이트를 도입해 파라미터 description에서 Markdown AST를 직접 파싱한 뒤 JSX 노드를 제거하도록 구현했습니다.

현재는 non-ASCII 문자 처리 문제 때문에 포크한 markdown mdast_util_to_markdown 크레이트를 임시로 사용하고 있습니다.
위 이슈를 해결하는 PR wooorm/markdown-rs#181 이 머지되고 새 버전이 배포되면, 포크 대신 공식 패키지로 교체할 예정입니다.

JSX 요소는 일반 Markdown 파서로 제대로 파싱할 수 없기 때문에, browser_sdk_utils 크레이트를 추가하여 Markdown AST를 파싱하고 JSX 요소를 제거하는 기능을 구현했습니다.
@CirnoV CirnoV requested a review from kiwiyou June 16, 2025 12:00
@CirnoV CirnoV merged commit 2905847 into master Jun 18, 2025
@CirnoV CirnoV deleted the feat/support-mdx-description branch June 18, 2025 05:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants