typora-issues icon indicating copy to clipboard operation
typora-issues copied to clipboard

Summary support

Open GavinNovate opened this issue 7 years ago • 18 comments

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

GavinNovate avatar Jun 24 '18 15:06 GavinNovate

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

abnerlee avatar Aug 19 '18 01:08 abnerlee

能支持代码段吗?

View Code
{
    "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}
    ]
}

gt-sun avatar Oct 15 '18 11:10 gt-sun

@abnerlee

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

songkeys avatar Jan 02 '19 02:01 songkeys

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!

print("hello world!")

vidavidorra avatar Jul 11 '19 13:07 vidavidorra

relates #1939

abnerlee avatar Mar 27 '20 15:03 abnerlee

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

iTomxy avatar Aug 09 '21 08:08 iTomxy

collapsible images? typora does not rendering image inside details tag

svonjoi avatar Nov 06 '21 12:11 svonjoi

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.

iTomxy avatar Nov 06 '21 16:11 iTomxy

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

svonjoi avatar Nov 11 '21 00:11 svonjoi

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

Squirreljetpack avatar Dec 14 '21 03:12 Squirreljetpack

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

aitimate avatar Mar 02 '22 15:03 aitimate

+1

pdevito3 avatar Sep 22 '22 03:09 pdevito3

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

Craaab avatar Sep 30 '22 08:09 Craaab

mark code fold

zhaoqingqing avatar Oct 18 '22 13:10 zhaoqingqing

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

tracyqwerty avatar May 25 '23 05:05 tracyqwerty

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

andrew-manger avatar Dec 04 '23 18:12 andrew-manger

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.

Pomax avatar May 26 '24 20:05 Pomax

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

MTDickens avatar May 27 '24 09:05 MTDickens