Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I hide block of text using YouTrack Markdown syntax?

Tags:

youtrack

When I use YouTrack Wiki syntax, I can use {cut} like this:

{cut Block title}
Block content
{cut}

This is very useful feature, but Wiki syntax is deprecated and I can't find something similar in YouTrack Markdown syntax.

UPD: I figured out that I can use stacktrace as language with backticks:

```stacktrace
Header text
Hidden text
```

But it works different (possibly because it was designed to work with Java stacktraces), not preserving leading whitespaces, not highlighting code, etc.

like image 534
jbot Avatar asked Oct 23 '25 19:10

jbot


2 Answers

In YouTrack 2019.3 it will be possible to use this (not tested personally yet):

<details>
  <summary>Brief summary</summary>
  Unnecessary long description
</details>

Implemented in https://youtrack.jetbrains.com/issue/JT-45636

like image 67
alexb Avatar answered Oct 27 '25 01:10

alexb


On the subject of invisible notes, I use the following which do not show at all when using Markdown:

[//]: # (COMMENT DOES NOT SHOW)

This is great if doing a default description which needs some type of instruction.

like image 44
John Potter Avatar answered Oct 27 '25 01:10

John Potter