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

Markdown Heading Editor Folding Not Working #107130

Closed
lamyergeier opened this issue Sep 20, 2020 · 9 comments
Closed

Markdown Heading Editor Folding Not Working #107130

lamyergeier opened this issue Sep 20, 2020 · 9 comments
Assignees
Labels
info-needed Issue requires more information from poster

Comments

@lamyergeier
Copy link

  • VSCode Version:1.49.1
  • OS Version:Ubuntu 20.04.1

Steps to Reproduce:

  1. The markdown folding as illustrated in [folding] Add code folding for markdown based on heading level · Issue #3347 · microsoft/vscode, doesn't work. I don't get the option to fold it

Does this issue occur when all extensions are disabled?: Yes

@mjbvz
Copy link
Contributor

mjbvz commented Sep 21, 2020

Sep-21-2020 09-54-46

Please markdown code that demonstrates the problem

@mjbvz mjbvz added the info-needed Issue requires more information from poster label Sep 21, 2020
@lamyergeier
Copy link
Author

lamyergeier commented Oct 7, 2020

@mjbvz

I opened the following markdown file after disabling all extensions

image

Observation

We can see that we don't get the V symbol for headings (should be located on the left pane of the headings), so we are unable to minimize it.

Reference

Version: 1.49.1
Commit: 58bb7b2
Date: 2020-09-16T23:23:33.049Z
Electron: 9.2.1
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Linux x64 5.4.0-48-generic

@mjbvz
Copy link
Contributor

mjbvz commented Oct 8, 2020

Please share the text of that file

@lamyergeier
Copy link
Author

lamyergeier commented Oct 9, 2020

@mjbvz

---
title: 'Sewing'
subtitle:
author: 'Anish Mittal'
date: 'Wednesday, October 07, 2020 - 18:23'
keywords: ['']
ratings: ['']
reviews: ''
---

# Introduction

- [How to Sew by Hand - YouTube](https://www.youtube.com/watch?v=ZvzMMcKHVR4)
- [Hand sewing 2 Sewing on a button - YouTube](https://www.youtube.com/watch?v=MjmUaWkzF-I)
  - Excellent!
- [How to Sew a Zipper, TWO ways - YouTube](https://www.youtube.com/watch?v=oHDDhUzIXPY)
  - Nice! But for special use.

## Summary

-

# Bibliography

-

---

@mjbvz
Copy link
Contributor

mjbvz commented Oct 12, 2020

That example works fine for me:

Screen Shot 2020-10-12 at 4 36 47 PM

Did you disable the built-in markdown language features extension?

@mjbvz
Copy link
Contributor

mjbvz commented Oct 12, 2020

Or actually, either you've disabled the built-in extension or have changed the "editor.foldingStrategy" setting to be indentation based instead of smart (auto)

@kmatarese
Copy link

Interestingly I'm having a very similar problem using Org Mode after just updating VSCode. It no longer recognizes the asterisks as the headings that should be folded, and will only fold lines that start with a dash like the OP showed here.

Version: 1.50.1
Commit: d2e414d9e4239a252d1ab117bd7067f125afd80a
Date: 2020-10-13T14:53:05.704Z (1 wk ago)
Electron: 9.2.1
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Darwin x64 18.0.0

@robgrace
Copy link

robgrace commented Nov 6, 2020

I struggled with this too for a while, even after checking the "Editor:Folding" setting, which was mysteriously off by default. But it appears that some folding arrows only appear when you mouse over the gutter (like Markdown), but other arrows are persistent (like list-level folding).

@github-actions github-actions bot locked and limited conversation to collaborators Dec 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

7 participants
@robgrace @aeschli @mjbvz @kmatarese @lamyergeier and others