marktext/doc/BLOCK_ADDITION_PROPERTY.md
Ran Luo 4bd22b6dc5
Mark Text Preference (#1003)
* dynamic change element-ui theme to our themeColor

* add some ui components

* add preference doc

* add json schema file

* update preference.json and schema.json

* reset to old commit

* rename preference file for rebase

* rebase develop

* add setting window

* user electron-store to store preferences

* add themes setting

* add select component

* add markdown pref

* fix: bool and select init value

* add font size setting

* editor pref

* add general preference

* search preference

* update menu after preference changed

* update muya codes

* prevent scale setting window

* fix: titlebar undefined

* update input style

* remove window from windowManager after close setting window

* remove old docs and preference.md

* if a setting window is already created, no need to create another one, just move it to top

* rename openFilesInNewWindow to openFileInNewWindow

* change aidou runtime

* change hideQuickInsertHint by setting page runtime

* change autopair runtime

* change codefont and codefontfamily dynamic

* change default value of autoSave to false

* update bulletListMarker

* fix style error

* add custom titlebar to settings window

* add window shadow for Linux and Windows

* fix Windows build

* fix some typo error

* update doc

* add default menu and setting menu

* fix update menu bug

* fix typo

* remove mac titlebarstyle

* do not need to send titlebarstyle to renderer

* fix typo

* crash Mark Text if no initial preference.json file

* update the path

* add showCustomTitleBar prop

* set empty settings menu on Linux/Windows + workaround
2019-05-09 09:26:28 +08:00

1.8 KiB
Raw Blame History

Block addition properties and its value

1. span
  • functionType

    • languageInput

    • codeLine

    • atxLine (can not contain soft line break and hard line break use in atx heading)

    • thematicBreakLine (can not contain soft line break and hard line break use in thematic break)

    • paragraphContent (defaultValue use in paragraph and setext heading)

  • lang - only when it's code line

    • All prismjs support language or empty string
2. div

used for preview block math, mermaid, flowchart, vega-lite, sequence and html block.

  • functionType

    • multiplemath

    • mermaid

    • flowchart

    • vega-lite

    • sequence

    • html

3. figure

The container block of table, html, block math, mermaid,flowchart,vega-lite,sequence.

  • functionType

    • table

    • html

    • multiplemath

    • mermaid

    • flowchart

    • vega-lite

    • sequence

4. pre

Used for html,block math,mermaid,flowchart,vega-lite,sequence code block.

  • functionType

    • html

    • multiplemath

    • mermaid

    • flowchart

    • vega-lite

    • sequence

    • fencecode

    • indentcode

    • frontmatter

  • lang

    • all prismjs support language or empty string
5. code
  • lang

    • all prismjs support language or empty string
ul
  • listType

    • bullet

    • task

ol
  • listType

    • order
  • start

    • 0-999999999
li
  • listItemType

    • order

    • bullet

    • task

  • isLooseListItem

    • true

    • false

  • bulletMarkerOrDelimiter

    • bulletMarker-, +, *

    • Delimiter ), .

h1~6
  • headingStyle

    • atx

    • setext

  • marker - only setext heading has marker

input
  • checked

    • true

    • false

table
  • row

  • column

th/td
  • align

  • column