(Docs) Fix styling conflict for code tags within li elements #2273
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.
IMPORTANT: Please do not create a Pull Request adding a new feature without discussing it first.
The place to discuss new features is the forum: https://zola.discourse.group/
If you want to add a new feature, please open a thread there first in the feature requests section.
Sanity check:
Changes
Fixes a styling conflict where
code
elements within list items (li
) were being styled identically to inlinecode
tags. The problem arose when thesecode
tags are already inside apre
block for codeblocks.Context
Screenshots
Before
![before](https://private-user-images.githubusercontent.com/6399341/260753259-acf34314-341f-4c03-b6cb-ea65dd0e3e0b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1NTM4NDQsIm5iZiI6MTczOTU1MzU0NCwicGF0aCI6Ii82Mzk5MzQxLzI2MDc1MzI1OS1hY2YzNDMxNC0zNDFmLTRjMDMtYjZjYi1lYTY1ZGQwZTNlMGIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTRUMTcxOTA0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NzdkOThkNmFjZWNhNmI3MTg5NTdmZDJiMDI0YmVmYWI0YTkzNTFhMDQyYzRjZDc3MTI5NjgyMmYzNzRjYTMyNiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.t5CselDvz2sTLIDW5pUoA3wrSfucaXg62F0ho5X-N90)
After
![after](https://private-user-images.githubusercontent.com/6399341/260753294-dc152c02-b342-4026-89d5-18614335234d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1NTM4NDQsIm5iZiI6MTczOTU1MzU0NCwicGF0aCI6Ii82Mzk5MzQxLzI2MDc1MzI5NC1kYzE1MmMwMi1iMzQyLTQwMjYtODlkNS0xODYxNDMzNTIzNGQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTRUMTcxOTA0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MzgzMDM0ZjZiMDEyZGM4YTRjMTBjN2Y2NDkyYjIzZTcxYzE2NzZmZGU3NjdlYjYzMjQyZTU0MDU3MTQxMDI4NCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.-z9HtA2vM3H9zQ8pVwE1PUpVnFcbt-fxkSPacYKOr6c)