Compare commits
3 Commits
v6.0.2
...
f3cd6d3fcf
| Author | SHA1 | Date | |
|---|---|---|---|
| f3cd6d3fcf | |||
| 0034602fff | |||
| b29d054de2 |
@ -1,8 +1,16 @@
|
||||
import os, sys, sublime
|
||||
pkg = os.path.basename(os.path.dirname(__file__))
|
||||
lib = os.path.join(sublime.packages_path(), pkg, "lib")
|
||||
if lib not in sys.path:
|
||||
sys.path.insert(0, lib)
|
||||
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
|
||||
|
||||
Binary file not shown.
@ -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 markdown2 import Markdown
|
||||
|
||||
__all__ = ("markdown2html",)
|
||||
|
||||
markdowner = Markdown(extras=["fenced-code-blocks", "cuddled-lists"])
|
||||
|
||||
@ -8,8 +8,8 @@
|
||||
"homepage": "https://git.0x42.cloud/christian.morpurgo/MarkdownLivePreview",
|
||||
"releases": [
|
||||
{
|
||||
"version": "6.0.1",
|
||||
"url": "https://git.0x42.cloud/christian.morpurgo/MarkdownLivePreview/releases/download/v6.0.1/MarkdownLivePreview.sublime-package",
|
||||
"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