fig-standards icon indicating copy to clipboard operation
fig-standards copied to clipboard

Sync H1 and H2 Markdown headers

Open petk opened this issue 2 years ago • 4 comments

Hello, I was just browsing the PSRs and in the past there were some syncs done on the H1 and H2 Markdown headings. This fixes the rest. Issue is also that some titles are not displayed on the php-fig.org site if the headings don't follow some logic.

petk avatar Feb 03 '23 18:02 petk

I think this could be automated with prettier (https://prettier.io/).

I quickly did a pull request against my fork first to show how it can be done: https://github.com/drupol/fig-standards/pull/1

Let me know what you think all.

drupol avatar Feb 03 '23 21:02 drupol

I think this could be automated with prettier (https://prettier.io/).

Well, not all unfortunately. This PR fixes some issues where the indentation level was wrong, and I don't think that can be automated...

Jean85 avatar Feb 09 '23 07:02 Jean85

Oh ? Curious to see where you spotted that, can you add a comment where the issue is ? I will try to understand why and maybe provide a better solution.

drupol avatar Feb 09 '23 07:02 drupol

Is this still open because of the discussion around automating it?

ashnazg avatar Mar 05 '24 02:03 ashnazg