mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
fixed comment block separation
This commit is contained in:
parent
5dbf4245bf
commit
1fc04e62a6
3 changed files with 16 additions and 8 deletions
|
@ -10,9 +10,9 @@ import { COMMENT_BLOCK_DETECTORS, COMMENT_BLOCK_TYPES, ICommentBlock } from '~/c
|
|||
import format from 'date-fns/format';
|
||||
import { pipe } from 'ramda';
|
||||
import {
|
||||
formatDash,
|
||||
formatTextDash,
|
||||
formatExclamations,
|
||||
formatMarkdown,
|
||||
formatTextMarkdown,
|
||||
formatTextClickableUsernames,
|
||||
formatTextComments,
|
||||
formatTextSanitizeTags,
|
||||
|
@ -101,8 +101,8 @@ export const formatText = pipe(
|
|||
formatTextComments,
|
||||
formatTextTodos,
|
||||
formatExclamations,
|
||||
formatDash,
|
||||
formatMarkdown
|
||||
formatTextDash,
|
||||
formatTextMarkdown
|
||||
);
|
||||
|
||||
export const formatTextParagraphs = (text: string): string => (text && formatText(text)) || null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue