Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to make it compatible with pymodwnx.snippets? #20

Open
Guts opened this issue Dec 12, 2023 · 2 comments
Open

How to make it compatible with pymodwnx.snippets? #20

Guts opened this issue Dec 12, 2023 · 2 comments

Comments

@Guts
Copy link
Contributor

Guts commented Dec 12, 2023

Hi @daxartio,

Been a while. It's impressive to see the good job you made here since I had a look 👏.

I'm facing a case remembering me the race condition between processors we've met before but I've not investigated a lot.

Use case:

  • a project with a well-documented README.md with termynal comment:

    [...]
    ## Installation
    
    <!-- termynal: {"prompt_literal_start": [">"], title: Terminal} -->
    
    ```sh
    > pip install mkdocs-rss-plugin
    ---> 100%
    RSS plugin for Mkdocs installed! Add 'rss' to your 'plugins' section in mkdocs.yml
    [...]
    ```
    
  • a docs/index.md where I would like to reuse the README.md content using pymodwnx.snippets:

    --8<-- "README.md"
    [...]

Sadly the render is not working:

image

Any idea?

@daxartio
Copy link
Collaborator

Hi!

Can you change this line in the code to check my idea

md.preprocessors.register(TermynalPreprocessor(config, md), "termynal", 35)

Change 35 to any number from 25 to 32.

@daxartio
Copy link
Collaborator

Maybe we can use some env for that, but i'm not sure because it seems badly practice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants