Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mickem opened this issue Dec 19, 2022 · 2 comments

Comments

@mickem
Copy link

mickem commented Dec 19, 2022

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: mickem@e899a7c
If there is an interest I could add a PR for this repo.

@trieloff
Copy link
Collaborator

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.

@jy95
Copy link

jy95 commented Jan 9, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants