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

wrong output and slug generated (using GFM as reference) when title contains a link #169

Open
trusktr opened this issue Feb 3, 2021 · 0 comments

Comments

@trusktr
Copy link

trusktr commented Feb 3, 2021

Input:

## Usage with [`@lume/element`](https://github.com/lume/element)

Expected output:

  * [Usage with [`@lume/element`](https://github.com/lume/element)](#usage-with-lumeelement)

Actual output:

  * [Usage with [`@lume/element`](https://github.com/lume/element)](#usage-with-lumeelementhttpsgithubcomlumeelement)

The slug does not have only the part that would be visible to the user reading the file. The slug should be based on the visible test (user doesn't see the URL).

Also maybe the link needs to be stripped, because it results in this:

@trusktr trusktr changed the title wrong slug generated (using GFM as reference) wrong output and slug generated (using GFM as reference) when title contains a link Feb 3, 2021
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

1 participant