Compare commits
28 Commits
v6.0.0
...
f3cd6d3fcf
| Author | SHA1 | Date | |
|---|---|---|---|
| f3cd6d3fcf | |||
| 0034602fff | |||
| b29d054de2 | |||
| a9f2f951c0 | |||
| 696eb1e1dd | |||
| 6379b673fc | |||
| b521caed0f | |||
| 9bcd725a41 | |||
| aec40dcf2f | |||
| b25ab1a4c6 | |||
| 243555c0c9 | |||
| 40da1972af | |||
| af7b054d5d | |||
| 4d3c2a7139 | |||
| 06d45e51b9 | |||
| 0ddc896fc3 | |||
| 6f488e0d64 | |||
| 4eed4934ff | |||
| 626793e31d | |||
| c5493db292 | |||
| e6b028506b | |||
| 2973f7f138 | |||
| 2a58c22160 | |||
| beb6cfe709 | |||
| 44eb19d923 | |||
| 0354ddf41d | |||
| fede6c2873 | |||
| 141a7d062c |
@ -1,3 +1,17 @@
|
||||
import os
|
||||
import sys
|
||||
import sublime
|
||||
|
||||
# --- Add lib to sys.path ---
|
||||
# Get the directory containing this file (MarkdownLivePreview.py)
|
||||
plugin_dir = os.path.dirname(__file__)
|
||||
# Construct the absolute path to the 'lib' directory
|
||||
lib_path = os.path.join(plugin_dir, 'lib')
|
||||
# Add it to the beginning of sys.path if it's not already there
|
||||
if lib_path not in sys.path:
|
||||
sys.path.insert(0, lib_path)
|
||||
# --- End sys.path modification ---
|
||||
|
||||
"""
|
||||
Terminology
|
||||
original_view: the view in the regular editor, without it's own window
|
||||
@ -8,9 +22,7 @@ preview_window: the window with the markdown file and the preview
|
||||
"""
|
||||
|
||||
import time
|
||||
import os.path
|
||||
import struct
|
||||
import sublime
|
||||
import sublime_plugin
|
||||
|
||||
from functools import partial
|
||||
|
||||
BIN
MarkdownLivePreview.sublime-package
Normal file
BIN
MarkdownLivePreview.sublime-package
Normal file
Binary file not shown.
7
channel.json
Normal file
7
channel.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"$schema": "sublime://packagecontrol.io/schemas/channel",
|
||||
"schema_version": "4.0.0",
|
||||
"repositories": [
|
||||
"https://git.0x42.cloud/christian.morpurgo/MarkdownLivePreview/raw/branch/master/repository.json"
|
||||
]
|
||||
}
|
||||
@ -1,7 +0,0 @@
|
||||
{
|
||||
"*": {
|
||||
"*": [
|
||||
"bs4"
|
||||
]
|
||||
}
|
||||
}
|
||||
@ -11,12 +11,15 @@ import os.path
|
||||
import concurrent.futures
|
||||
import urllib.request
|
||||
import base64
|
||||
|
||||
# --- Bundled library imports ---
|
||||
# These should now find the libraries in ./lib via the modified sys.path
|
||||
import bs4
|
||||
from .lib.markdown2 import Markdown
|
||||
# --- End bundled library imports ---
|
||||
|
||||
from functools import partial
|
||||
|
||||
from .lib.markdown2 import Markdown
|
||||
|
||||
__all__ = ("markdown2html",)
|
||||
|
||||
markdowner = Markdown(extras=["fenced-code-blocks", "cuddled-lists"])
|
||||
|
||||
@ -1,15 +1,19 @@
|
||||
{
|
||||
"schema_version": "3",
|
||||
"schema_version": "3.0.0",
|
||||
"packages": [
|
||||
{
|
||||
"name": "MarkdownLivePreview-Fork",
|
||||
"name": "MarkdownLivePreview",
|
||||
"description": "My enhanced live-preview fork of MarkdownLivePreview",
|
||||
"author": "Christian Morpurgo",
|
||||
"homepage": "https://git.0x42.cloud/christian.morpurgo/MarkdownLivePreview",
|
||||
"releases": [
|
||||
{
|
||||
"version": "1.0.0",
|
||||
"url": "https://git.0x42.cloud/christian.morpurgo/MarkdownLivePreview/archive/v0.0.0.zip"
|
||||
"version": "6.0.2",
|
||||
"url": "https://git.0x42.cloud/christian.morpurgo/MarkdownLivePreview/releases/download/v6.0.2/MarkdownLivePreview.sublime-package",
|
||||
"date": "2025-04-24 00:00:00",
|
||||
"sublime_text": "*"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user