typora / typora-issues

Bugs, suggestions or free discussions about the minimal markdown editor — Typora
https://typora.io
1.53k stars 58 forks source link

Summary support #1581

Open GavinNovate opened 6 years ago

GavinNovate commented 6 years ago

I would love to see Typora support the summary feature.Just like this.

abnerlee commented 6 years ago

You could use

<details>
  <summary>Copyright 1999-2014.</summary>
  <p> - by Refsnes Data. All Rights Reserved.</p>
  <p>All content and graphics on <a href="https://typora.io" target="blank">this</a> web site are the property of the company Refsnes Data.</p>
</details>

instead now in Typora

gt-sun commented 5 years ago

能支持代码段吗?

View Code ```json { "kind" : "Policy", "apiVersion" : "v1", "predicates" : [ {"name" : "PodFitsHostPorts"}, {"name" : "PodFitsResources"}, {"name" : "NoDiskConflict"}, {"name" : "NoVolumeZoneConflict"}, {"name" : "MatchNodeSelector"}, {"name" : "HostName"} ], "priorities" : [ {"name" : "LeastRequestedPriority", "weight" : 1}, {"name" : "BalancedResourceAllocation", "weight" : 1}, {"name" : "ServiceSpreadingPriority", "weight" : 1}, {"name" : "EqualPriority", "weight" : 1} ] } ```
Songkeys commented 5 years ago

@abnerlee

Could we use markdown syntax inside <details> tags? If not, could this feature be supported?

vidavidorra commented 5 years ago

Any update on this feature?

This bit does not render in Typora (Version 0.9.9.25.3 (2897)). Note that i've added \ before the ` marks to ensure the code block continues.

## collapsible markdown?

<details>
  <summary>CLICK ME</summary>
  <p>

  #### yes, even hidden code blocks!

  \```python
  print("hello world!")
  \```

  </p>
</details>

Render in typora

image

On github

collapsible markdown?

CLICK ME

#### yes, even hidden code blocks! ```python print("hello world!") ```

abnerlee commented 4 years ago

relates #1939

iTomxy commented 3 years ago

I hope it can automatically create hierarchical folding points based on headings of all levels, just like the one in jupyter notebook.

svonjoi commented 2 years ago

collapsible images? typora does not rendering image inside details tag

iTomxy commented 2 years ago

Not image rendering. I mean something like the code folding in a code editor (example), but the folding points are the headings, i.e. treating the content within the scope of heading as a code block.

svonjoi commented 2 years ago

hehe i understood u. I just was asking by collapsible images functionallity, not about your prev comment. Sorry for not expressing myself

Squirreljetpack commented 2 years ago

+1 for something like >! syntax for a collapsible region (stackoverflow)

aitimate commented 2 years ago

You could use

<details>
  <summary>Copyright 1999-2014.</summary>
  <p> - by Refsnes Data. All Rights Reserved.</p>
  <p>All content and graphics on <a href="https://typora.io" target="blank">this</a> web site are the property of the company Refsnes Data.</p>
</details>

instead now in Typora

This is so bad for codes

pdevito3 commented 1 year ago

+1

Craaab commented 1 year ago

It would be super nice to have contents between [```] collapsable. To be more specifically, make contents in the "well" collapsable.

image
zhaoqingqing commented 1 year ago

mark code fold

tracyqwerty commented 1 year ago

same problem.

<details>
<summary>Details</summary>
<p>
In C, a string is essentially an array of characters, but it's typically represented as a pointer to its first element -- a `char *`. So when you have a `char *` variable, it is effectively a string.

The `strcmp` function compares two strings. It expects as arguments two pointers to the beginning of each string (two `char *`). When you call `strcmp(wc1->word, wc2->word)`, you're saying "compare the string that begins at `wc1->word` with the string that begins at `wc2->word`".

If you were to dereference the pointers with `*wc1->word` and `*wc2->word`, you would be providing the `char` values (i.e., the first characters of each string) at those memory locations instead of the pointers themselves, which is not what `strcmp` expects.

In other words, `strcmp` doesn't want to know what the first characters of the strings are -- it wants to know where the strings start. By giving it `char *` arguments, you're providing it with that information.

</p>

</details>
image
andrew-manger commented 9 months ago

+1 to implement a Markdown version of collapsable content (no HTML) to allow for easy editing and preview.

Pomax commented 3 months ago

Counter-point: Typora claims to support GFM, and this is part of GFM, so instead of implementing a different markdown with detail syntax, maybe after almost a decade (it's been an active request since 2016) just support it. Or stop claiming to support GFM.

MTDickens commented 3 months ago

Why hasn't typora team fixed this after almost 6 yrs!