mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
removed typograf
This commit is contained in:
parent
f2fbca80e1
commit
a9d5b3c7f2
3 changed files with 2 additions and 10 deletions
|
@ -173,6 +173,8 @@ $sidebar_border: transparentize(white, 0.95);
|
||||||
@media (max-width: 599px) {
|
@media (max-width: 599px) {
|
||||||
flex-direction: column !important;
|
flex-direction: column !important;
|
||||||
|
|
||||||
|
@content;
|
||||||
|
|
||||||
& > * {
|
& > * {
|
||||||
margin: $gap/2 0 !important;
|
margin: $gap/2 0 !important;
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,6 @@ import {
|
||||||
formatTextSanitizeTags,
|
formatTextSanitizeTags,
|
||||||
formatTextSanitizeYoutube,
|
formatTextSanitizeYoutube,
|
||||||
formatTextTodos,
|
formatTextTodos,
|
||||||
formatTextTypograf,
|
|
||||||
} from '~/utils/formatText';
|
} from '~/utils/formatText';
|
||||||
import { splitTextByYoutube, splitTextOmitEmpty } from '~/utils/splitText';
|
import { splitTextByYoutube, splitTextOmitEmpty } from '~/utils/splitText';
|
||||||
|
|
||||||
|
@ -103,7 +102,6 @@ export const formatText = pipe(
|
||||||
formatTextTodos,
|
formatTextTodos,
|
||||||
formatExclamations,
|
formatExclamations,
|
||||||
formatTextDash,
|
formatTextDash,
|
||||||
formatTextTypograf,
|
|
||||||
formatTextMarkdown,
|
formatTextMarkdown,
|
||||||
formatTextSanitizeTags,
|
formatTextSanitizeTags,
|
||||||
formatTextClickableUsernames
|
formatTextClickableUsernames
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
import marked from 'marked';
|
import marked from 'marked';
|
||||||
import { stripHTMLTags } from '~/utils/stripHTMLTags';
|
import { stripHTMLTags } from '~/utils/stripHTMLTags';
|
||||||
import Typograf from 'typograf';
|
|
||||||
|
|
||||||
const typograf = new Typograf({ locale: ['ru', 'en-US'] });
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Cleans youtube urls
|
* Cleans youtube urls
|
||||||
|
@ -72,8 +69,3 @@ export const formatTextDash = (text: string): string => text.replace(' -- ', '
|
||||||
* Formats with markdown
|
* Formats with markdown
|
||||||
*/
|
*/
|
||||||
export const formatTextMarkdown = (text: string): string => marked(text);
|
export const formatTextMarkdown = (text: string): string => marked(text);
|
||||||
|
|
||||||
/**
|
|
||||||
* Uses typograf.js to prettify text
|
|
||||||
*/
|
|
||||||
export const formatTextTypograf = (text: string): string => typograf.execute(text);
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue