Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| caf932b536 | |||
| fa106c8206 |
@ -81,7 +81,7 @@ def show_html(md_view, preview):
|
|||||||
# remove half of the viewport_extent.y to center it on the screen (verticaly)
|
# remove half of the viewport_extent.y to center it on the screen (verticaly)
|
||||||
vector[1] -= preview.viewport_extent()[1] / 2
|
vector[1] -= preview.viewport_extent()[1] / 2
|
||||||
# make sure the minimum is 0
|
# make sure the minimum is 0
|
||||||
vector[1] = 0 if vector < 0 else vector[1]
|
vector[1] = 0 if vector[1] < 0 else vector[1]
|
||||||
# the hide the first line
|
# the hide the first line
|
||||||
vector[1] += preview.line_height()
|
vector[1] += preview.line_height()
|
||||||
preview.set_viewport_position(vector, animate=False)
|
preview.set_viewport_position(vector, animate=False)
|
||||||
|
|||||||
@ -49,7 +49,7 @@ Note: MarkdownLivePreview will actualy look in this file for settings that aren'
|
|||||||
- `show_sidebar`
|
- `show_sidebar`
|
||||||
- `show_menus`
|
- `show_menus`
|
||||||
|
|
||||||
They talk for themself, don't they? All of them takes a boolean (`true` or `false`). Note that those settings are *window* specific, not just view specific (that's why they aren't supported). It means that they'll affect the entire window, and every view in it.
|
They talk for themself, don't they? All of them takes a boolean (`true` or `false`). Note that those settings are *window* specific, not just view specific (that's why they aren't supported). It means that they'll affect the entire window, and every view in it.
|
||||||
|
|
||||||
Here is an example of syntax specific settings for MarkdownLivePreviewSyntax:
|
Here is an example of syntax specific settings for MarkdownLivePreviewSyntax:
|
||||||
|
|
||||||
|
|||||||
@ -2,5 +2,5 @@
|
|||||||
"install": "messages/install.txt",
|
"install": "messages/install.txt",
|
||||||
"1.1.2": "messages/1.1.2.txt",
|
"1.1.2": "messages/1.1.2.txt",
|
||||||
"2.0.1": "messages/2.0.1.txt",
|
"2.0.1": "messages/2.0.1.txt",
|
||||||
"2.2.0": "messages/2.2.0.txt"
|
"2.2.1": "messages/2.2.0.txt"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user