Skip to content

allow_dangerous_html オプションを build.markdown オプションに追加する#43

Merged
zztkm merged 2 commits intomainfrom
feature/html-comments
Nov 12, 2025
Merged

allow_dangerous_html オプションを build.markdown オプションに追加する#43
zztkm merged 2 commits intomainfrom
feature/html-comments

Conversation

@zztkm
Copy link
Copy Markdown
Member

@zztkm zztkm commented Nov 12, 2025

No description provided.

@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @zztkm, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

このプルリクエストは、静的サイトジェネレーター vss において、Markdownコンテンツのビルドプロセスに柔軟性をもたらす新しい設定オプションを導入します。具体的には、build.markdown.allow_dangerous_html という設定が追加され、これによりユーザーはMarkdownパーサーがHTMLコメントなどの「危険な」HTML要素をどのように扱うかを制御できるようになります。この変更は、セキュリティ上の考慮事項を維持しつつ、特定のHTML機能をMarkdown内で利用したい開発者に選択肢を提供することを目的としています。

Highlights

  • 新しい設定オプションの追加: Markdownファイル内のHTML処理を制御する build.markdown.allow_dangerous_html オプションが追加されました。
  • 危険なHTMLの許可設定: このオプションは、vss が依存する markdown-rs ライブラリの allow_dangerous_html 機能を有効化し、Markdown内でHTMLコメントなどの危険なHTML要素を許可するかどうかを制御します。
  • セキュリティに関する注意喚起: allow_dangerous_html の有効化に伴うセキュリティリスクについて、markdown-rs のドキュメントへのリンクが提供されています。
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

このプルリクエストは、MarkdownからHTMLへの変換時に危険なHTMLを許可する allow_dangerous_html オプションを追加するものですね。設定構造の変更、markdown_to_html 関数の更新、設定値の受け渡しなど、関連する変更が正しく行われています。CHANGELOG.md やサンプルサイトの更新も含まれており、丁寧な対応だと感じました。1点、markdown_to_html 関数の実装をよりシンプルにするための提案をさせていただきましたので、ご確認ください。

Comment thread src/subcommand_build.rs Outdated
@zztkm zztkm merged commit dc8b5cc into main Nov 12, 2025
2 checks passed
@zztkm zztkm deleted the feature/html-comments branch November 12, 2025 12:36
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.

1 participant