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

Support error fallback #14

Merged
merged 2 commits into from
Dec 5, 2022
Merged

Support error fallback #14

merged 2 commits into from
Dec 5, 2022

Commits on Dec 3, 2022

  1. Support error fallback

    If the user provides `errorFallback`, it will be called when mermaid
    throws an error. It will receive the faulty code node, the mermaid error
    message, and the vfile as arguments, and may return a node to replace
    the code. If nothing is returned from the fallback, the code will be
    removed instead. To keep the code as-is, simply return the it from the
    fallback.
    
    Also if no error fallback is provided, errors are now handled gracefully
    using `file.fail()`.
    
    Closes #10
    remcohaszing committed Dec 3, 2022
    Configuration menu
    Copy the full SHA
    be26ca6 View commit details
    Browse the repository at this point in the history

Commits on Dec 5, 2022

  1. Configuration menu
    Copy the full SHA
    2583656 View commit details
    Browse the repository at this point in the history