Skip to content
New issue

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

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

Already on GitHub? # to your account

Option to change the slugify mode #10

Open
guicassolato opened this issue Jan 4, 2023 · 0 comments
Open

Option to change the slugify mode #10

guicassolato opened this issue Jan 4, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@guicassolato
Copy link
Owner

Despite availability of 6 different modes to generate the slugs for the anchor links in the rendered markdown:

tothom/src/slugify.ts

Lines 4 to 22 in 5ba5ab5

export const enum SlugifyMode {
/** Azure DevOps */
azure = "azureDevops",
/** Bitbucket Cloud */
bitbucket = "bitbucket-cloud",
/** gitea */
gitea = "gitea",
/** github */
github = "github",
/** gitlab */
gitlab = "gitlab",
/** Visual Studio Code */
vscode = "vscode",
}

github mode is always enforced:

let slug = slugify(raw, { env });

mode = SlugifyMode.github,

Instead, this could be configurable by the user.

@guicassolato guicassolato added the enhancement New feature or request label Jan 4, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant