Code Monkey home page Code Monkey logo

Comments (5)

dwrolvink avatar dwrolvink commented on May 23, 2024

Compare

html_body = markdown.markdown(md.page, extensions=['extra', 'codehilite', 'toc', 'md_mermaid'], extension_configs=extension_configs)

vs

html_body = markdown.markdown(md.page, extensions=['extra', 'codehilite', 'toc'], extension_configs=extension_configs)

The first case retains russian characters, the second case removes them. So there is something wrong with the mermaid plugin.

For now a workaround/fix is making this change here:

html_body = markdown.markdown(md.page, extensions=['extra', 'codehilite', 'toc', 'md_mermaid'], extension_configs=extension_configs)

Though that will break mermaid support.

Will investigate if there is a solution. Perhaps use a different plugin/mermaid parse method.

from obsidian-html.

dwrolvink avatar dwrolvink commented on May 23, 2024

This is a known issue in md-mermaid oruelle/md_mermaid#2

from obsidian-html.

dwrolvink avatar dwrolvink commented on May 23, 2024

@slavamirniy
I found some lines that cause the issue in the dependency, will send them a pull request, but for now this is the workaround:

pip uninstall md_mermaid
pip install git+https://github.com/obsidian-html/md_mermaid
# python -m obsidianhtml -i config.yml

or

git clone [email protected]:obsidian-html/obsidian-html.git
cd obsidian-html
pip uninstall obsidianhtml
pip install dist/obsidianhtml-0.0.9.tar.gz 
# obsidianhtml -i config.yml

Will upload a new package this weekend after testing well, so the normall installation will then also be available.
Let me know if this solves this issue for you.

from obsidian-html.

slavamirniy avatar slavamirniy commented on May 23, 2024

My knowledge of English is not so great to be able to express my gratitude to you. Yes, everything works and works great. Thanks!

from obsidian-html.

dwrolvink avatar dwrolvink commented on May 23, 2024

No problem! Happy it works for you now 😄

from obsidian-html.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.