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

fix(graindoc): Escape * chars that would close markdown bold incorrectly #1685

Merged
merged 1 commit into from
Feb 20, 2023

Conversation

phated
Copy link
Member

@phated phated commented Feb 20, 2023

This escapes any *+ characters at the beginning of a string passed to Markdown.bold, any **+ anywhere in the string, and any *+ at the end of string. These all would cause the bold to be rendered improperly.

I've also started adding tests for the markdown utils, to ensure this was working before applying to #1538

Closes #1550 - I know this said to escape _ but those don't actually effect the ** added by bold so I'm not going to escape them right now.

@ospencer ospencer added this pull request to the merge queue Feb 20, 2023
Merged via the queue into main with commit 3b6b5ca Feb 20, 2023
@ospencer ospencer deleted the phated/graindoc-escape-bold branch February 20, 2023 20:05
av8ta pushed a commit to av8ta/grain that referenced this pull request Apr 11, 2023
…tly (grain-lang#1685)

fix(graindoc): Escape * characters that would close markdown bold incorrectly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

GrainDoc: Escape Function Names In Output
2 participants