Skip to content

[Markup] add support for swift-cmark's inline attributes #60173

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 4 commits into from
Jul 22, 2022

Conversation

QuietMisdreavus
Copy link
Contributor

Resolves rdar://96830173

When the swift-cmark branch was changes from main to gfm in #40188, swiftMarkup was not updated to handle the new kinds of nodes that were introduced. This causes the compiler to crash when using swift-cmark's "inline attributes" (or Foundation's attributed strings, which use the same syntax). This PR updates swiftMarkup to handle inline attributes from swift-cmark.

the older names were kept in the cmark header for compatibility, but
these are the ones that are actually defined in the main enum
@QuietMisdreavus
Copy link
Contributor Author

@swift-ci Please test

Copy link
Contributor

@bitjammer bitjammer left a comment

Choose a reason for hiding this comment

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

Just fantastic. I only have one suggestion for the name of the element to make it a little easier to navigate to in the future.

@QuietMisdreavus
Copy link
Contributor Author

@swift-ci Please test

@QuietMisdreavus
Copy link
Contributor Author

@swift-ci Please test

@@ -959,6 +959,13 @@
<param name="pattern">.*\S.*</param>
</data>
</element>
<element name="Attribute">
Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry I missed this. It looks like you forgot to update the schema and XML printing.

@QuietMisdreavus
Copy link
Contributor Author

@swift-ci Please test

Copy link
Contributor

@bitjammer bitjammer left a comment

Choose a reason for hiding this comment

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

Thank you, everything looks great.

@QuietMisdreavus QuietMisdreavus merged commit 8893b3b into main Jul 22, 2022
@QuietMisdreavus QuietMisdreavus deleted the QuietMisdreavus/markup-gfm-updates branch July 22, 2022 20:55
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