andreaswolf / fractor

Generic File Read-Analyze-Change Tool
MIT License
33 stars 0 forks source link

Support rst files #206

Open linawolf opened 4 months ago

linawolf commented 4 months ago

I wonder if it was possible to support rst files and maybe use our rst parser for that: https://github.com/phpDocumentor/guides

andreaswolf commented 4 months ago

That would definitely be possible, we just never thought of that.

Do you have an example usecase that we could use to kickstart this? @linawolf

linawolf commented 4 months ago

For example we could add link anchors to all headlines that do not have one yet for consistent links when a headline is renamed.

https://docs.typo3.org/m/typo3/docs-how-to-document/main/en-us/Reference/ReStructuredText/Content/Links.html#explicit-link-targets

And we could sluggify those link anchors so they are always written the way that the phpdocumentor/guides interprets them (all lowercase, special chars replaced by hyphen etc)