Fixes #27605: inline math blocks can't be preceeded/followed by alphanumerical characters (#30175) #30250
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.
Backport #30175 by @jmlt2002
Former behaviour (from try.gitea.io):
![image](https://private-user-images.githubusercontent.com/114936010/318066012-8f0cbb21-321d-451c-b871-c67a8e1e9235.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQwMDY1NDEsIm5iZiI6MTcyNDAwNjI0MSwicGF0aCI6Ii8xMTQ5MzYwMTAvMzE4MDY2MDEyLThmMGNiYjIxLTMyMWQtNDUxYy1iODcxLWM2N2E4ZTFlOTIzNS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODE4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgxOFQxODM3MjFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04NTkxNTk3MDI3ZDJlMzE3MDM2ZTkwMzNiMjY0YmRhMGNiYmEzN2U5MWNiYWQ0ZmVhOTJhZjhhMjQ5MzFhZGFkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.6ho4XaqzgJgFNSET7YvBWBIohsVcMeMq3gjMZP8jA-A)
Fixed behaviour (from my local build):
![image](https://private-user-images.githubusercontent.com/114936010/318066153-5c22687c-6f11-4407-b5e7-c14b838bc20d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQwMDY1NDEsIm5iZiI6MTcyNDAwNjI0MSwicGF0aCI6Ii8xMTQ5MzYwMTAvMzE4MDY2MTUzLTVjMjI2ODdjLTZmMTEtNDQwNy1iNWU3LWMxNGI4MzhiYzIwZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODE4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgxOFQxODM3MjFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wZjIyMWFlZGZkNGI4ZjQzMzljYjE2OWMyOThlYmU2NzI0MjdjZTcxYTY1YmU4MWFhYzM1NmFkMTQ5MzVjNzhjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.W5_h4Plu0r2j_T-NyOVrw-DFWdYiqOdOJEMVSxXD2Pk)
(Edit) Source code for the README.md file: