fivem
fivem copied to clipboard
fix(natives/rpc): Keep code fencing in doc summary
Goal of this PR
Removing leading and trailing backticks from the native summary section breaks formatting if the summary only contains formatted code.
How is this PR achieving the goal
Removal of the regex pattern matching for leading and trailing backticks in the doc string parse function when native md is being generated.
See issue https://github.com/citizenfx/natives/issues/1124 for a showcase of the mismatch between client and server native docs.
This PR applies to the following area(s)
Natives
Successfully tested on
Game builds: Not applicable
Platforms: Windows
Checklist
- [x] Code compiles and has been tested successfully.
- [x] Code explains itself well and/or is documented.
- [x] My commit message explains what the changes do and what they are for.
- [x] No extra compilation warnings are added by these changes.
Fixes issues
fixes https://github.com/citizenfx/natives/issues/1124