Skip to content

Commit

Permalink
Add new mission
Browse files Browse the repository at this point in the history
Add new mission
  • Loading branch information
huangwb8 committed Jul 18, 2024
1 parent 7d462f4 commit 7fb6907
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ As shown in the following GIF, all changed or brand-new markdowns can be automat

## TO-DO

- [ ] shuoshuo and page update & upload

- [ ] Enhanced markdown support: `python-markdown` to `markdown-it-py`

- [ ] Support Hexo-like YAML head:
Expand Down
3 changes: 3 additions & 0 deletions m2w/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ def make_post(filepath, metadata):
post_from_file.content, extensions=['markdown.extensions.fenced_code']
)
post_content_html = post_content_html.encode("utf-8")
# from markdown_it import MarkdownIt
# md = MarkdownIt("gfm-like")
# post_content_html = md.render(post_from_file.content)

# 3 将本地post的元数据暂存到metadata中
metadata['title'] = filename_prefix # 将文件名去掉.md后缀,作为标题
Expand Down

0 comments on commit 7fb6907

Please sign in to comment.