Skip to content

Conversation

@LiYanan2004
Copy link
Owner

Closes #129

This PR uses dynamic document parse options instead of including .parseBlockDirectives

So now, MarkdownView uses default parsing options, except when developers explicitly call:

  • .blockDirectiveRenderer(_:for:)
  • .markdownMathRenderingEnabled()

The view modifiers listed above will enable .parseBlockDirectives again. If your markdown contains @xxxx, make sure you explicitly escape the @ to make sure it shows as expected

escape-at-sign-when-parse-block-directives-enabled.mov

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@LiYanan2004 LiYanan2004 merged commit ebb1ecc into main Nov 24, 2025
5 checks passed
@LiYanan2004 LiYanan2004 deleted the improvements/use-dynamic-parsing-options branch November 24, 2025 09:53
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