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

Mermaid-cli arguments option and flexible HTML detection #14

Open
wants to merge 10 commits into
base: mermaid-cli
Choose a base branch
from

Commits on Jul 8, 2024

  1. Added option 'mermaid_args' to be able to specify

    arguments sent to mermaid-cli.
    
    Also expanded mermaid HTML element detection.
    
    I used PyMdown Extension SuperFences for my Mermaid diagrams
    in  MkDocs, so my HTML is still the old `<div class="mermaid">` blocks.
    Therefore, I used regex to detect any HTML block with the `mermaid`
    or `language-mermaid` class with at most one child HTML element.
    Nathaniel Clark committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    4ae05dc View commit details
    Browse the repository at this point in the history
  2. Allow that mermaid may not be the only class assigned to the HTML e…

    …lement
    Nathaniel Clark committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    d4dd196 View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2024

  1. Added option to reduce visual scale of diagrams

    mermaid_img_scale_reduction uses CSS height and width
    to scale down the visual size of rendered mermaid diagrams.
    This is a direct counter to puppeteer scale fed to
    mermaid-cli so that setting both to the same
    integer larger than 1 will result in a higher resolution
    diagram at the natural 'scale 1' visual size.
    Nathaniel Clark committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    8d77db0 View commit details
    Browse the repository at this point in the history
  2. Documenting mermaid arguments in readme

    Nathaniel Clark committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    5ad3170 View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2024

  1. Adding Mermaid rendering to RelaxedJS

    Nathaniel Clark committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    d91d96e View commit details
    Browse the repository at this point in the history
  2. Restoring an import removed by accident

    Nathaniel Clark committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    3faa947 View commit details
    Browse the repository at this point in the history
  3. Remove unused import

    Nathaniel Clark committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    d1b2296 View commit details
    Browse the repository at this point in the history
  4. Changed height/width element CSS to use max-width/max-height for easi…

    …er application of additional CSS rules like 'width=100%'.
    Nathaniel Clark committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    ba01be7 View commit details
    Browse the repository at this point in the history

Commits on Aug 6, 2024

  1. Configuration menu
    Copy the full SHA
    5d18daa View commit details
    Browse the repository at this point in the history
  2. Added a guard test to prevent fix_image_alignment from altering an im…

    …age's style attribute if the image's attributes don't need to be fixed.
    Nathaniel Clark committed Aug 6, 2024
    Configuration menu
    Copy the full SHA
    ea7771b View commit details
    Browse the repository at this point in the history