Skip to content
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

Retain markdown's fenced code block encoding format #735

Merged
merged 4 commits into from
Feb 3, 2025

Conversation

sourishkrout
Copy link
Member

Not all tools processing markdowns equally accommodate attributes/annotations inside fenced code blocks. This is especially true if they aren't encoded in HTML attribute format. A notable example is https://gohugo.io/.

Instead of always preferring JSON encoding. This PR changes the default behavior of the attribute parser to retain the original encoding format.

@adambabik
Copy link
Collaborator

@sourishkrout Initially I wanted to comment with suggestions, but as the number of comments was growing, I submitted 5d0f828 instead. The main change is removal of the AttributeStore interface as it is not needed; Attributes is just fine.

@sourishkrout sourishkrout changed the base branch from adamb/cleanup-attributes-parsing to main February 3, 2025 19:42
@sourishkrout
Copy link
Member Author

@sourishkrout Initially I wanted to comment with suggestions, but as the number of comments was growing, I submitted 5d0f828 instead. The main change is removal of the AttributeStore interface as it is not needed; Attributes is just fine.

Sounds good 👌. Thank you!

@sourishkrout sourishkrout merged commit 02584f6 into main Feb 3, 2025
8 checks passed
@sourishkrout sourishkrout deleted the seb/retain-attr-format branch February 3, 2025 20:03
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