jsonschema2md icon indicating copy to clipboard operation
jsonschema2md copied to clipboard

Feature request: Flag to optionally disable generating titles in markdown links

Open mickem opened this issue 2 years ago • 2 comments

I use just-the-docs and jekyll to generate a static site based on the markdown generated with this tool. Unfortunately that stack does not support titles in markdown links so it would be nice with a flag to remove them.

In other words I want a flag which when enabled replaces this:

[foo](bar TITLE)

With this:

[foo](bar)

I have created a fork that we currently use to achieve this here: https://github.com/mickem/jsonschema2md/commit/e899a7c9453f5fdb45ae7d3bfb7a1450e93cae82 If there is an interest I could add a PR for this repo.

mickem avatar Dec 19 '22 19:12 mickem

Feature requests that come with a PR are my favorite. From a quick look at your commit, it looks good – I would just flip the yargs argument configuration: make --link-titles a boolean, default true, then using --no-link-titles will behave exactly as your code does.

trieloff avatar Dec 20 '22 16:12 trieloff

@mickem Thanks. In one of my projects, this could be useful to have. Looking forward to see that in next version ;)

jy95 avatar Jan 09 '23 22:01 jy95