Skip to content

Commit

Permalink
#861 slugifyMode bitbucket-cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
yzhang committed Dec 8, 2020
1 parent ef06e5b commit 6f25000
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -383,14 +383,16 @@
"azureDevops",
"gitea",
"gitlab",
"vscode"
"vscode",
"bitbucket-cloud"
],
"enumDescriptions": [
"GitHub",
"Azure DevOps",
"Gitea",
"GitLab",
"Visual Studio Code"
"Visual Studio Code",
"Bitbucket Cloud"
]
},
"markdown.extension.toc.unorderedList.marker": {
Expand Down
4 changes: 4 additions & 0 deletions src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,10 @@ export function slugify(heading: string, mode?: string, downcase?: boolean) {
slug = slugifyMethods.azureDevops(slug);
break;

case 'bitbucket-cloud':
slug = 'markdown-header-' + slugifyMethods.github(slug);
break;

default:
slug = slugifyMethods.github(slug);
break;
Expand Down

0 comments on commit 6f25000

Please sign in to comment.