Skip to content

Added custom inline nodes support#412

Open
DeeSee wants to merge 2 commits into
gonzalezreal:mainfrom
DeeSee:custom_inline_nodes
Open

Added custom inline nodes support#412
DeeSee wants to merge 2 commits into
gonzalezreal:mainfrom
DeeSee:custom_inline_nodes

Conversation

@DeeSee

@DeeSee DeeSee commented Jun 20, 2025

Copy link
Copy Markdown

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
@FujiwaraChoki

Copy link
Copy Markdown

Any update on this?

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.

3 participants