1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-30 15:16:41 +07:00

removed typograf

This commit is contained in:
Fedor Katurov 2021-09-22 14:25:37 +07:00
parent f2fbca80e1
commit a9d5b3c7f2
3 changed files with 2 additions and 10 deletions
src/utils

View file

@ -1,8 +1,5 @@
import marked from 'marked';
import { stripHTMLTags } from '~/utils/stripHTMLTags';
import Typograf from 'typograf';
const typograf = new Typograf({ locale: ['ru', 'en-US'] });
/**
* Cleans youtube urls
@ -72,8 +69,3 @@ export const formatTextDash = (text: string): string => text.replace(' -- ', '
* Formats with markdown
*/
export const formatTextMarkdown = (text: string): string => marked(text);
/**
* Uses typograf.js to prettify text
*/
export const formatTextTypograf = (text: string): string => typograf.execute(text);