feat: Auto update titles in linked documents (#1233)

* feat: Auto update titles in linked documents

* Add spec
This commit is contained in:
Tom Moor
2020-04-19 21:58:42 -07:00
committed by GitHub
parent ee5ae140c3
commit c526adf292
4 changed files with 159 additions and 8 deletions

10
server/utils/slugify.js Normal file
View File

@ -0,0 +1,10 @@
// @flow
import slug from 'slug';
slug.defaults.mode = 'rfc3986';
export default function slugify(text: string): string {
return slug(text, {
remove: /[.]/g,
});
}