Skip to content

Commit 94cd41b

Browse files
committed
release 0.3.3 fixing a stupid mistake i made while fixing a bug
1 parent 8ca6c82 commit 94cd41b

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM python:3.12-alpine
22

3-
RUN pip install --no-cache-dir markopolis==0.3.2
3+
RUN pip install --no-cache-dir markopolis==0.3.3
44

55
WORKDIR /app
66

markopolis/md.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,16 @@ def get_meta(note_path: str) -> Tuple[Optional[Dict[str, Any]], str]:
114114

115115

116116
def get_note_content(note_path: str) -> Tuple[Optional[Tuple[str, str]], Optional[str]]:
117+
md_configs = {
118+
"mdx_wikilink_plus": {
119+
"base_url": f"{settings.domain}",
120+
# "end_url": ".html",
121+
# "url_case": "lowercase",
122+
# "html_class": "a-custom-class",
123+
#'build_url': build_url, # A callable
124+
# all of the above config params are optional
125+
},
126+
}
117127
if not note_path or not isinstance(note_path, str):
118128
return None, "Invalid note path"
119129
full_note_path = os.path.join(MDROOT, note_path + ".md")
@@ -144,7 +154,8 @@ def get_note_content(note_path: str) -> Tuple[Optional[Tuple[str, str]], Optiona
144154
MermaidExtension(),
145155
CalloutExtension(),
146156
# "mdx_math",
147-
]
157+
],
158+
extension_configs=md_configs,
148159
)
149160
# Convert Markdown to HTML
150161
html_content = md.convert(markdown_content)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "markopolis"
3-
version = "0.3.2"
3+
version = "0.3.3"
44
description = "Self-hostable Obsidian Publish"
55
authors = ["Rishikanth Chandrasekaran <[email protected]>"]
66
readme = "README.md"

0 commit comments

Comments
 (0)