Skip to content

[5.x] Render markdown after antlers when smartypants is enabled #11814

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 3 commits into from
Jun 19, 2025

Conversation

ryanmitchell
Copy link
Contributor

This PR updates the logic in Value::antlersValue to allow for antlers parsing on the raw value of the field, after which the field itself is augmented.

This ensures that on the markdown field smartypants takes effect after antlers, preventing any antlers errors.

Closes #11302

@ryanmitchell
Copy link
Contributor Author

@duncanmcclean i've added a test, its a bit meh but its the best I can think of!

@jasonvarga jasonvarga merged commit 6aa6081 into statamic:5.x Jun 19, 2025
24 checks passed
@ryanmitchell ryanmitchell deleted the fix/issue-11302 branch June 19, 2025 20:13
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.

Smartypants is applied before Antlers
3 participants