citizenfx / fivem

The source code for the Cfx.re modification frameworks, such as FiveM, RedM and LibertyM, as well as FXServer.
https://cfx.re/
3.52k stars 2.07k forks source link

fix(natives/rpc): Keep code fencing in doc summary #2570

Closed tens0rfl0w closed 2 months ago

tens0rfl0w commented 4 months ago

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

Fixes issues

fixes https://github.com/citizenfx/natives/issues/1124