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

Allow logging for Prism to be toggled #75

Merged
merged 3 commits into from
May 12, 2023

Conversation

MattIPv4
Copy link
Member

Type of Change

  • Markdown-It Plugins: Prism

What issue does this relate to?

N/A

What should this PR do?

Between the potential for component loading errors logging with the introduction of #69, and the potential for logging errors from bad Prism renders (keep HTML issues normally), logs can get quite noisy when rendering a lot of Markdown.

This PR adds a new option to the Prism plugin to toggle logging for errors, with the default being off. This is a change in the default behaviour, but one I feel still falls under the umbrella of a minor change as the actual output and functionality of the plugin is unchanged.

What are the acceptance criteria?

When logging is enabled, any render errors will produce an error in console. When logging is disabled, any render errors will be suppressed.

@MattIPv4 MattIPv4 added enhancement New feature or request minor Change is SEMVER minor labels May 11, 2023
@MattIPv4 MattIPv4 merged commit 5515d0c into master May 12, 2023
4 checks passed
@MattIPv4 MattIPv4 deleted the MattIPv4/prism-logging-option branch May 12, 2023 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request minor Change is SEMVER minor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants