aerijo / folding-markdown Goto Github PK
View Code? Open in Web Editor NEWA provider for custom markdown folding in Atom
License: MIT License
A provider for custom markdown folding in Atom
License: MIT License
# First header
# Second header
- text below second header
It seems that the same error occurs for any level header (H2, H3, etc.) when it’s the top-level header in the file.
If the final header in the file is empty, there’s no error — unless there are blank lines following that header.
No error
# First header
- text below first header
# Second header[EOF]
Error
# First header
- text below first header
# Second header
[blank line]
[EOF]
Atom: 1.58.0 x64
Electron: 9.4.4
OS: macOS 12.1
Thrown From: folding-markdown package 0.1.4
Expected behavior:
Actual behavior:
Atom: 1.60.0 x64
Electron: 9.4.4
OS: macOS 12.5.1
Thrown From: folding-markdown package 0.1.4
Uncaught TypeError: Cannot read property 'end' of undefined
At /Users/jiantang.li/.atom/packages/folding-markdown/lib/main.js:84
TypeError: Cannot read property 'end' of undefined
at Object.getFoldableRangesAtHeaderLevel (/packages/folding-markdown/lib/main.js:84:21)
at TextMateLanguageMode.languageMode.getFoldableRangesAtIndentLevel (/packages/atom-folding/dist/main.js:51:48)
at TextEditor.foldAllAtIndentLevel (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:50681)
at TextEditor.editor:fold-at-indent-level-2 (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:306854)
at HTMLElement.n.<computed> (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:309471)
at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:352694)
at KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:1228469)
at KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:1224603)
at WindowEventHandler.handleDocumentKeyEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:286682)
-1:04.8.0 core:close (input.hidden-input)
-1:04.3.0 fuzzy-finder:toggle-file-finder (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
-1:02.2.0 core:backspace (input.hidden-input)
2x -1:02.1.0 editor:delete-to-beginning-of-line (input.hidden-input)
-1:00.8.0 core:confirm (input.hidden-input)
-0:04.1.0 editor:fold-at-indent-level-2 (input.hidden-input)
atom-folding 0.0.9
folding-markdown 0.1.4
language-markdown 0.37.0
markdown-preview-plus 4.11.1
markdown-writer 2.11.11
Great tool, thanks! You might put in a screenshot or something to let others know about this, as it works nicely with no need for key commands.
Might you be able to also add support collapsing fenced coding blocks like:
```js
```
?
If I close the file and then open it again, folding data is lost.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.