Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@ebobrow
Copy link
Contributor

@ebobrow ebobrow commented Jul 2, 2022

Use formatCode function from #8129 in

  • HTML
  • MediaWiki

These readers were chosen arbitrarily and I am happy to add more or revert any, if anyone more familiar with the project has any input.

@ebobrow
Copy link
Contributor Author

ebobrow commented Jul 2, 2022

I'm not sure what happened with CI. That test passes locally.

@jgm
Copy link
Owner

jgm commented Jul 2, 2022

The muse reader tests include some nondeterministic roundtrip tests.
This explains why it could have passed locally.

@ebobrow
Copy link
Contributor Author

ebobrow commented Jul 3, 2022

Ah, got it. I reran the tests with the --quickcheck-replay=842046 flag on the master branch and got the same failure, so I don't think it comes from my changes? Could that be possible? This PR didn't touch the Muse reader and I don't see any inline code in the Muse roundtrip tests, so it seems unrelated.

Copy link
Collaborator

@tarleb tarleb left a comment

Choose a reason for hiding this comment

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

You're right about the failing test, it is unrelated to the changes here. The test has now been removed.

The HTML change looks good (but see my inline comment); I don't think reStructuredText supports markup in code, and I'm unsure about the others. Could you verify that these changes are correct?

@ebobrow
Copy link
Contributor Author

ebobrow commented Jul 4, 2022

Good point about RST not supporting formatting within code. I removed the readers that don't support it. Thanks for the review!

@jgm
Copy link
Owner

jgm commented Jul 5, 2022

I'd suggest updating the commit message so it's more informative. We use these to create the changelog. Say which readers you've changed, and what the change does, and link to the issue adding formatCode, as you did in the PR description above.

move formatting from inside inline code elements to the outside in order
to retain formatting
@jgm jgm merged commit 7fdc01a into jgm:master Jul 6, 2022
@jgm
Copy link
Owner

jgm commented Jul 6, 2022

Thanks!

@ebobrow ebobrow deleted the format-code branch July 6, 2022 20:38
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.

3 participants