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

"text" mode (no syntax highlighting) is not available in code blocks. #1773

Closed
tsumare opened this issue Jul 28, 2019 · 1 comment
Closed
Labels
bug It's a bug

Comments

@tsumare
Copy link

tsumare commented Jul 28, 2019

Code blocks do not respond correctly when 'text' or 'plain' is listed as the language. This means that anything that is not in a known language, or which should be treated in a similar 'pre' style manner to code will be highlighted as... I would guess javascript, in Joplin.

Example:

```text
this comes out as code
```

Github rendering:

this comes out as code

Joplin rendering:
image

Environment

Joplin version: 1.0.160
Platform: Linux
OS specifics: Ubuntu Xenial

Steps To Reproduce

  1. Create a code block in markdown and attempt to find a language specifier that will render it as text.
  2. Try "text", "plain", "unknownLanguageHere"

Describe what you expected to happen:

Rendering as a code block without syntax highlighting, similar to other renderers such as Github

@tsumare tsumare added the bug It's a bug label Jul 28, 2019
@tsumare tsumare changed the title The "text" programming 'language' is not available for code blocks. "text" mode (no syntax highlighting) is not available in code blocks. Jul 28, 2019
@laurent22
Copy link
Owner

Triple ticks is for code blocks with syntax highlighting. If you don't want this, you can indent the code block with 4 space or a tab instead.

@lock lock bot locked and limited conversation to collaborators Oct 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug It's a bug
Projects
None yet
Development

No branches or pull requests

2 participants