-
Notifications
You must be signed in to change notification settings - Fork 54
Migration guide
{
- __inside_code_block = false
- buf_ignore = {},
- debounce = 50,
- filetypes = {},
- hybrid_modes = {},
- ignore_nodes = {},
- initial_state = true,
- max_file_length = 1000,
- modes = {},
- render_distance = 500,
- split_conf = {},
+ preview = {
+ enable = true,
+ buf_ignore = {},
+ debounce = nil,
+ icon_provider = "internal",
+ filetypes = {},
+ hybrid_modes = {},
+ ignore_previews = {},
+ max_buf_lines = 1000,
+ modes = {},
+ render_distance = { 200, 200 },
+ splitview_winopts = {}
+ },
- block_quotes = {
- callbacks = {}
- },
- code_blocks = {
- icons = "internal",
- language_names = {}
- },
- headings = {},
- horizontal_rules = {},
- list_items = {},
- tables = {
- col_min_width = 10
- },
+ markdown = {
+ block_quotes = {
+ ["^NOTE$"] = {},
+ },
+ code_blocks = {},
+ headings = {},
+ horizontal_rules = {},
+ list_items = {},
+ tables = {}
+ },
- injections = {},
- checkboxes = {
- custom = {}
- },
- links = {
- hyperlinks = {
- __emoji_link_compatability = false,
- icon = "", hl = nil,
- custom = {}
- },
- images = {
- __emoji_link_compatability = false,
- icon = "", hl = nil,
- custom = {}
- },
- emails = {
- __emoji_link_compatability = false,
- icon = "", hl = nil,
- custom = {}
- },
- internal_links = {
- __emoji_link_compatability = false,
- icon = "", hl = nil,
- custom = {}
- }
- },
- footnotes = {
- use_unicode = true
- },
- inline_codes = {},
+ markdown_inline = {
+ checkboxes = {
+ ["-"] = {}
+ },
+ hyperlinks = {
+ ["^neovim%.org"] = {}
+ },
+ images = {
+ ["%.svg"] = {}
+ },
+ emails = {
+ ["gmail"] = {}
+ },
+ internal_links = {
+ ["^neovim"] = {}
+ },
+ inline_codes = {},
+ footnotes = {},
+ },
- html = {
- tags = {},
- entities = {}
- },
+ html = {
+ container_elements = {},
+ headings = {},
+ void_elements = {},
+ },
latex = {
- brackets = {},
+ parenthesis = {},
- block = {},
+ blocks = {},
- inline = {},
+ inlines = {},
- operators = {
- custom = {}
- },
+ commands = {
+ ["sin"] = {}
+ },
symbols = {
- overwrite = (),
- groups = {}
},
- subscript = {},
+ subscripts = {},
- superscript = {},
+ superscripts = {},
}
}
Note
Some of these have backwards compatibility, but not all of them.
v25
introduces the following breaking changes,
-
buf_ignore
has been moved inside ofpreview
. -
callbacks
has been moved inside ofpreview
. -
debounce
has been moved inside ofpreview
. -
filetypes
has been moved inside ofpreview
. -
hybrid_modes
has been moved inside ofprwview
. -
ignore_nodes
has been deprecated. Usepreview β ignore_previews
instead. -
initial_state
has been deprecated. Usepreview β enable
instead. -
max_file_length
has been deprecated. Usepreview β max_buf_lines
instead. -
modes
has been moved inside ofpreview
. -
render_distance
has been moved inside ofpreview
-
render_distance
options type has changed(integer β [ integer, integer]
).
-
-
split_conf
has been deprecated. Usepreview β splitview_winopts
instead. -
injections
has been deprecated. Usequeries/langauge/*.scm
instead. -
block_quotes
has been moved inside ofmarkdown
.-
callouts
has been deprecated. Thematch_string
is used as the key for defining a new callout.
-
-
code_blocks
has been moved inside ofmarkdown
.-
minimal
style is deprecated in favor ofblock
. -
icone
has been deprecated. Usepreview β icon_provider
instead. -
language_names
has been deprecated.
-
-
headings
has been moved inside ofmarkdown
. -
horizontal_rules
has been moved inside ofmarkdown
. -
list_items
has been moved inside ofmarkdown
. -
tables
has been moved inside ofmarkdown
.-
col_min_width
has been removed to reduce code complexity of the renderer.
-
-
inline_codes
has been moved inside ofmarkdown_inline
. -
checkboxes
has been moved inside ofmarkdown_inline
.-
custom
has been deprecated. Thematch_string
is used as the key for defining new checkbox states.
-
-
links
has been deprecated.-
hyperlinks
has been moved inside ofmarkdown_inline
.-
icon
,hl
has been deprecated. Usedefault β icon
,default β hl
instead. -
custom
has been deprecated. Thematch_string
is used as the key for defining new checkbox states.
-
-
images
has been moved inside ofmarkdown_inline
.-
icon
,hl
has been deprecated. Usedefault β icon
,default β hl
instead. -
custom
has been deprecated. Thematch_string
is used as the key for defining new checkbox states.
-
-
emails
has been moved inside ofmarkdown_inline
.-
icon
,hl
has been deprecated. Usedefault β icon
,default β hl
instead. -
custom
has been deprecated. Thematch_string
is used as the key for defining new checkbox states.
-
-
internal_links
has been moved inside ofmarkdown_inline
.-
icon
,hl
has been deprecated. Usedefault β icon
,default β hl
instead. -
custom
has been deprecated. Thematch_string
is used as the key for defining new checkbox states.
-
-
-
footnotes
has been moved inside ofmarkdown_inline
.-
use_unicode
has been deprecated as it reduces readability.
-
-
html β tags
has been deprecated.- Use
html β container_elements
for container elements(e.g.<u></u>
). - Use
html β headings
for headings(e.g.<h1></h1>
). - Use
html β void_elements
for void elements(e.g.<hr>
).
- Use
-
html β entities
has been deprecated. Usemarkdown_inline β entities
instead. -
latex β brackets
has been renamed tolatex β parenthesis
. -
latex β block
has been renamed tolatex β blocks
. -
latex β inline
has been renamed tolatex β inlines
. -
latex β operators
has been deprecated. Uselatex β commands
instead.-
custom
has been deprecated. Thematch_string
is used as the key for defining new commands.
-
-
latex β symbols
,-
overwrite
has been deprecated due to lack of use cases. -
groups
has been deprecated due to not being practical.
-
-
latex β subscript
has been renamed tolatex β subscripts
. -
latex β superscript
has been renamed tolatex β superscripts
.
Also available in vimdoc, :h markview.nvim-migration