Skip to content

Commit

Permalink
release 0.3.3 fixing a stupid mistake i made while fixing a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
rishikanthc committed Aug 15, 2024
1 parent 8ca6c82 commit 94cd41b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM python:3.12-alpine

RUN pip install --no-cache-dir markopolis==0.3.2
RUN pip install --no-cache-dir markopolis==0.3.3

WORKDIR /app

Expand Down
13 changes: 12 additions & 1 deletion markopolis/md.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,16 @@ def get_meta(note_path: str) -> Tuple[Optional[Dict[str, Any]], str]:


def get_note_content(note_path: str) -> Tuple[Optional[Tuple[str, str]], Optional[str]]:
md_configs = {
"mdx_wikilink_plus": {
"base_url": f"{settings.domain}",
# "end_url": ".html",
# "url_case": "lowercase",
# "html_class": "a-custom-class",
#'build_url': build_url, # A callable
# all of the above config params are optional
},
}
if not note_path or not isinstance(note_path, str):
return None, "Invalid note path"
full_note_path = os.path.join(MDROOT, note_path + ".md")
Expand Down Expand Up @@ -144,7 +154,8 @@ def get_note_content(note_path: str) -> Tuple[Optional[Tuple[str, str]], Optiona
MermaidExtension(),
CalloutExtension(),
# "mdx_math",
]
],
extension_configs=md_configs,
)
# Convert Markdown to HTML
html_content = md.convert(markdown_content)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "markopolis"
version = "0.3.2"
version = "0.3.3"
description = "Self-hostable Obsidian Publish"
authors = ["Rishikanth Chandrasekaran <r3chandr@ucsd.edu>"]
readme = "README.md"
Expand Down

0 comments on commit 94cd41b

Please sign in to comment.