GithubHelp home page GithubHelp logo

Comments (4)

oprypin avatar oprypin commented on September 21, 2024

Yes that is true. There's currently a problem with both examples. I actually ran into it just yesterday.

The 1st example has a bug that is fixed in facelessuser/pymdown-extensions#2206 but not released yet. But then it will run into the same bug as the 2nd example.

The 2nd example runs into a validation bug. Back when I was developing this, this line wasn't there yet: https://github.com/facelessuser/pymdown-extensions/blame/f4a66a6f06aa8e6f72f25fe6c579781f12e5636e/pymdownx/snippets.py#L85
Because this line is executed at load time and because mkdocs tries to validate the extension at load time, this fails.

# Confirm that Markdown considers extensions to be valid

Note that with the 2nd example only !relative is broken, !relative $config_dir still works.

from mkdocs.

Andre601 avatar Andre601 commented on September 21, 2024

Note that with the 2nd example only !relative is broken, !relative $config_dir still works.

Okay. Sadly, this wouldn't be of use for me personally, as the !relative option would be most useful for me for translatable docs as I could have the snippet in the same relative position to the docs page instead of having X variants in the same folder...

Guess I'll have to wait for pymdown extensions to update.

from mkdocs.

Andre601 avatar Andre601 commented on September 21, 2024

There seems to still be some issues with this option, even after 10.4 was released, which should fix it.

I mention this here, because I saw oprypin contributing the possible fix for this to the extension, so maybe he has further input on this.
Info on the issue, including currend markdown_extensions settings, is found here: facelessuser/pymdown-extensions#2236

from mkdocs.

oprypin avatar oprypin commented on September 21, 2024

Yes I was saying there are 2 problems and only 1 is fixed.

from mkdocs.

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.