Fix YAML parse error in mean-reversion-strategy notebooks - #5
Merged
Merged
Conversation
…ategy-2 notebook Co-authored-by: steveya <7390489+steveya@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix latest action CI failure
Fix YAML parse error in mean-reversion-strategy-2 notebook
Mar 4, 2026
Owner
|
CI failed again @copilot |
…ategy-3 and -4 notebooks Co-authored-by: steveya <7390489+steveya@users.noreply.github.com>
Contributor
Author
The same YAML backslash issue existed in |
Copilot
AI
changed the title
Fix YAML parse error in mean-reversion-strategy-2 notebook
Fix YAML parse error in mean-reversion-strategy notebooks
Mar 4, 2026
steveya
marked this pull request as ready for review
March 4, 2026 02:03
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CI was failing with
YAMLException: unknown escape sequencewhen Quarto parsedfig-capcell directives in the mean-reversion-strategy notebook series. YAML double-quoted strings interpret\as an escape character, making LaTeX sequences like\sqrt,\theta,\sigma,\mathrminvalid.Changes
posts/mean-reversion-strategy-2/index.ipynb— convertedfig-capvalues from double-quoted to single-quoted YAML strings in cells 7, 10, 11, 12posts/mean-reversion-strategy-3/index.ipynb— convertedfig-capvalues from double-quoted to single-quoted YAML strings in cells 3, 6, 7, 8posts/mean-reversion-strategy-4/index.ipynb— convertedfig-capvalues from double-quoted to single-quoted YAML strings in cells 3, 5, 8, 10Single-quoted YAML strings treat backslashes literally, allowing LaTeX math to pass through correctly.
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.