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

Handling log text in code blocks #8

Open
ChristianMurphy opened this issue Jul 11, 2018 · 1 comment
Open

Handling log text in code blocks #8

ChristianMurphy opened this issue Jul 11, 2018 · 1 comment

Comments

@ChristianMurphy
Copy link

Context

Displaying log output inside of a code block.
The logs are generic text and would not benefit from syntax highlighting.
While still allowing other code blocks to highlight in appropriate languages.

Issue

Inline code blocks `example.md` and code blocks without a language flag

```
example.md
```

Both will automatically attempt to guess the language being used.
In the examples above, language css is guessed, which renders the filename as an element, and the extension as a css class.

Potential solution

Add a flag that disables automatic language guessing when language flag is missing from code block.

@inlinestyle
Copy link
Owner

Hey @ChristianMurphy! If you can figure out the correct options to pass to the LowLight component (that this project just wraps) to make that work, I'm all for it. Even better if you make a PR!

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