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

Unknown environment 'enumerate' / 'itemize' #9

Open
michabbb opened this issue Sep 10, 2024 · 3 comments
Open

Unknown environment 'enumerate' / 'itemize' #9

michabbb opened this issue Sep 10, 2024 · 3 comments

Comments

@michabbb
Copy link

hi, do you have an idea why i am getting these errors ??

$environment
            ->addExtension(new CommonMarkCoreExtension())
            ->addExtension(new GithubFlavoredMarkdownExtension())
            ->addExtension(new ExternalLinkExtension())
            ->addExtension(new LatexRendererExtension())
            ->addRenderer(FencedCode::class, new CodeBlockRenderer($highlighter))
            ->addRenderer(Code::class, new InlineCodeBlockRenderer($highlighter));

        return (new MarkdownConverter($environment))->convert($text);

using "tempest/highlight": "^2.10"

@samwilson
Copy link
Owner

I assume you mean that the error message you're getting is "Unknown environment 'enumerate' / 'itemize'"?

Is that a latex error? Do you mean that there are other errors as well?

Could you expand your example to actually be usable, with all details? i.e. if that's a latex error then the code you've got here is not going to actually produce that error.

@samwilson
Copy link
Owner

Oh, and thanks for reporting the issue! I didn't mean to come across as grumpy. :-)

@michabbb
Copy link
Author

pardon, i switched to
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
because i had to find a working solution. as soon i have time, I will try to create a working example project for you. sorry!

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