Skip to content

Commit

Permalink
fix: broken TOC links
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-north committed Sep 1, 2018
2 parents d55247f + f1c3943 commit 5690d34
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/format/toc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ import * as lp from 'left-pad';
import { OrganizedResourceCategory } from '../data/resource';

function dasherize(s: string): string {
return s.toLowerCase().replace(/[\s\_\.]+/g, '-');
return s
.toLowerCase()
.replace(/[\.]/g, '')
.replace(/[\s\_]+/g, '-');
}

const SPACES: string[] = [];
Expand Down

0 comments on commit 5690d34

Please sign in to comment.