Skip to content

Added custom inline nodes support #412

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

DeeSee
Copy link

@DeeSee DeeSee commented Jun 20, 2025

Hey @gonzalezreal

Please look at the core idea of these changes (skipping tech details like changes in Package.swift). I'd love to know if you think these worth upstreaming? I used it in my project to add support for inline latex insertions.

I tried to make the least invasive variant possible, and the main questionable parts are as follows:

  • consistency of Hashable conformance in CustomInline is not guaranteed in any way (and no idea how to do that)
  • CustomInline uses SwiftUI.Text, while InlineNode didn't depend on SwiftUI before

In any case, looking forward for your feedback!

@DeeSee DeeSee force-pushed the custom_inline_nodes branch from fd257ca to ca329b6 Compare June 20, 2025 12:33
@DeeSee DeeSee force-pushed the custom_inline_nodes branch from ca329b6 to 3ee2189 Compare June 20, 2025 14:37
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