1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2025-12-10 02:18:06 +00:00

Add [[Link | Title]] button

This commit is contained in:
Timur Ismagilov
2021-09-12 11:29:21 +03:00
parent 44596e251c
commit 84cb140cf8
3 changed files with 123 additions and 120 deletions

View File

@@ -73,7 +73,8 @@ const wrapBold = selectionWrapper(2, '**'),
wrapLowered = selectionWrapper(2, ',,'),
wrapStrikethrough = selectionWrapper(2, '~~'),
wrapUnderline = selectionWrapper(2, '__'),
wrapLink = selectionWrapper(2, '[[', ']]')
wrapLink = selectionWrapper(2, '[[', ']]'),
wrapTitleLink = selectionWrapper(2, '[[', ' | ]]')
const insertHorizontalBar = textInserter('\n----\n'),
insertImgBlock = textInserter('\nimg {\n \n}\n', 10),