Uses tidy-markdown to fix and reformat ugly Markdown.
You can run it on-save:
Or you can run it from the command palette:
Fix ugly markdown.
Home Page: https://atom.io/packages/tidy-markdown
License: GNU General Public License v3.0
Uses tidy-markdown to fix and reformat ugly Markdown.
You can run it on-save:
Or you can run it from the command palette:
[Enter steps to reproduce below:]
Atom Version: 1.1.0
System: Microsoft Windows 7 Professional
Thrown From: tidy-markdown package, v1.0.0
Uncaught TypeError: this.character.charCodeAt is not a function
At C:\Users\jaremn\AppData\Local\atom\app-1.1.0\resources\app.asar\src\pane.js:788
TypeError: this.character.charCodeAt is not a function
at ReaderError.ReaderError.toString (C:\Users\jaremn\.atom\packages\tidy-markdown\node_modules\tidy-markdown\node_modules\front-matter\node_modules\yaml-js\lib\reader.js:20:58)
at ReaderError.YAMLError (C:\Users\jaremn\.atom\packages\tidy-markdown\node_modules\tidy-markdown\node_modules\front-matter\node_modules\yaml-js\lib\errors.js:70:25)
at new ReaderError (C:\Users\jaremn\.atom\packages\tidy-markdown\node_modules\tidy-markdown\node_modules\front-matter\node_modules\yaml-js\lib\reader.js:16:41)
at Constructor.Reader.Reader.check_printable (C:\Users\jaremn\.atom\packages\tidy-markdown\node_modules\tidy-markdown\node_modules\front-matter\node_modules\yaml-js\lib\reader.js:92:15)
at Constructor.Reader (C:\Users\jaremn\.atom\packages\tidy-markdown\node_modules\tidy-markdown\node_modules\front-matter\node_modules\yaml-js\lib\reader.js:44:12)
at Constructor.Loader (C:\Users\jaremn\.atom\packages\tidy-markdown\node_modules\tidy-markdown\node_modules\front-matter\node_modules\yaml-js\lib\loader.js:55:23)
at Object.load (C:\Users\jaremn\.atom\packages\tidy-markdown\node_modules\tidy-markdown\node_modules\front-matter\node_modules\yaml-js\lib\yaml.js:111:15)
at parse (C:\Users\jaremn\.atom\packages\tidy-markdown\node_modules\tidy-markdown\node_modules\front-matter\index.js:28:27)
at extractor (C:\Users\jaremn\.atom\packages\tidy-markdown\node_modules\tidy-markdown\node_modules\front-matter\index.js:21:34)
at module.exports (C:\Users\jaremn\.atom\packages\tidy-markdown\node_modules\tidy-markdown\lib\index.coffee:274:13)
at Object.module.exports.run (C:\Users\jaremn\.atom\packages\tidy-markdown\lib\index.coffee:49:17)
at C:\Users\jaremn\.atom\packages\tidy-markdown\lib\index.coffee:30:12
at TextBuffer.module.exports.TextBuffer.transact (C:\Users\jaremn\AppData\Local\atom\app-1.1.0\resources\app.asar\node_modules\text-buffer\lib\text-buffer.js:765:18)
at C:\Users\jaremn\.atom\packages\tidy-markdown\lib\index.coffee:28:14
at Emitter.module.exports.Emitter.emit (C:\Users\jaremn\AppData\Local\atom\app-1.1.0\resources\app.asar\node_modules\event-kit\lib\emitter.js:86:11)
at TextBuffer.module.exports.TextBuffer.saveAs (C:\Users\jaremn\AppData\Local\atom\app-1.1.0\resources\app.asar\node_modules\text-buffer\lib\text-buffer.js:1010:20)
at TextBuffer.module.exports.TextBuffer.save (C:\Users\jaremn\AppData\Local\atom\app-1.1.0\resources\app.asar\node_modules\text-buffer\lib\text-buffer.js:1002:19)
at TextEditor.module.exports.TextEditor.save (C:\Users\jaremn\AppData\Local\atom\app-1.1.0\resources\app.asar\src\text-editor.js:519:26)
at Pane.module.exports.Pane.saveItem (C:\Users\jaremn\AppData\Local\atom\app-1.1.0\resources\app.asar\src\pane.js:529:18)
at Pane.module.exports.Pane.saveActiveItem (C:\Users\jaremn\AppData\Local\atom\app-1.1.0\resources\app.asar\src\pane.js:512:19)
at Workspace.module.exports.Workspace.saveActivePaneItem (C:\Users\jaremn\AppData\Local\atom\app-1.1.0\resources\app.asar\src\workspace.js:560:35)
at atom-workspace.atom.commands.add.core:save (C:\Users\jaremn\AppData\Local\atom\app-1.1.0\resources\app.asar\src\workspace-element.js:270:30)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (C:\Users\jaremn\AppData\Local\atom\app-1.1.0\resources\app.asar\src\command-registry.js:243:29)
at C:\Users\jaremn\AppData\Local\atom\app-1.1.0\resources\app.asar\src\command-registry.js:3:61
at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (C:\Users\jaremn\AppData\Local\atom\app-1.1.0\resources\app.asar\node_modules\atom-keymap\lib\keymap-manager.js:528:16)
at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (C:\Users\jaremn\AppData\Local\atom\app-1.1.0\resources\app.asar\node_modules\atom-keymap\lib\keymap-manager.js:351:22)
at HTMLDocument.module.exports.WindowEventHandler.handleDocumentKeydown (C:\Users\jaremn\AppData\Local\atom\app-1.1.0\resources\app.asar\src\window-event-handler.js:97:20)
-1:11 core:backspace (atom-text-editor.editor.mini.is-focused)
2x -1:10 core:confirm (atom-text-editor.editor.mini.is-focused)
-0:13.5.0 core:save (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
{
"core": {}
}
# User
color-picker, v2.0.13
tidy-markdown, v1.0.0
vim-mode, v0.62.0
# Dev
No dev packages
Error output from atom package manager:
Installing “[email protected]” failed.Hide output…
npm WARN addRemoteGit Error: Command failed:
npm WARN addRemoteGit at ChildProcess.exithandler (child_process.js:658:15)
npm WARN addRemoteGit at ChildProcess.emit (events.js:98:17)
npm WARN addRemoteGit at maybeClose (child_process.js:766:16)
npm WARN addRemoteGit at Socket.<anonymous> (child_process.js:979:11)
npm WARN addRemoteGit at Socket.emit (events.js:95:17)
npm WARN addRemoteGit at Pipe.close (net.js:466:12)
npm WARN addRemoteGit git://github.com/slang800/tidy-markdown.git#v1.0.0 resetting remote C:\Users\bc0631\.atom\.apm\_git-remotes\git-github-com-slang800-tidy-markdown-git-d58b5c28 because of error: { [Error: Command failed: ] killed: false, code: 1, signal: null }
npm ERR! git clone --template=C:\Users\bc0631\.atom\.apm\_git-remotes\_templates --mirror git://github.com/slang800/tidy-markdown.git C:\Users\bc0631\.atom\.apm\_git-remotes\git-github-com-slang800-tidy-markdown-git-d58b5c28: Cloning into bare repository 'C:\Users\bc0631\.atom\.apm\_git-remotes\git-github-com-slang800-tidy-markdown-git-d58b5c28'...
npm ERR! git clone --template=C:\Users\bc0631\.atom\.apm\_git-remotes\_templates --mirror git://github.com/slang800/tidy-markdown.git C:\Users\bc0631\.atom\.apm\_git-remotes\git-github-com-slang800-tidy-markdown-git-d58b5c28: fatal: unable to connect to github.com:
npm ERR! git clone --template=C:\Users\bc0631\.atom\.apm\_git-remotes\_templates --mirror git://github.com/slang800/tidy-markdown.git C:\Users\bc0631\.atom\.apm\_git-remotes\git-github-com-slang800-tidy-markdown-git-d58b5c28: github.com[0: 192.30.252.130]: errno=Result too large
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Users\\bc0631\\AppData\\Local\\atom\\app-1.5.4\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\bc0631\\AppData\\Local\\atom\\app-1.5.4\\resources\\app\\apm\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "C:\\Users\\bc0631\\.atom\\.apm\\.apmrc" "--userconfig" "C:\\Users\\bc0631\\.atom\\.apmrc" "install" "C:\\Users\\bc0631\\AppData\\Local\\Temp\\d-116210-5528-16l1kkg\\package.tgz" "--target=0.34.5" "--arch=ia32"
npm ERR! node v0.10.40
npm ERR! npm v2.13.3
npm ERR! code 128
npm ERR! Command failed: Cloning into bare repository 'C:\Users\bc0631\.atom\.apm\_git-remotes\git-github-com-slang800-tidy-markdown-git-d58b5c28'...
npm ERR! fatal: unable to connect to github.com:
npm ERR! github.com[0: 192.30.252.130]: errno=Result too large
npm ERR!
npm ERR!
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
On saving a Markdown file (either with 'on save' disabled or checked), this is the error:
Atom Version: 1.0.2
System: Mac OS X 10.10.4
Thrown From: tidy-markdown package, v1.0.0
Uncaught while scanning a simple key
on line 2, column 1
could not find expected ':'
on line 4, column 1
At /Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:774
while scanning a simple key
on line 2, column 1
could not find expected ':'
on line 4, column 1
at ScannerError.YAMLError (/Users/admin/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/errors.js:70:46)
at ScannerError.MarkedYAMLError (/Users/admin/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/errors.js:90:45)
at new ScannerError (/Users/admin/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/scanner.js:23:49)
at Constructor.Scanner.Scanner.stale_possible_simple_keys (/Users/admin/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/scanner.js:286:17)
at Constructor.Scanner.Scanner.need_more_tokens (/Users/admin/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/scanner.js:168:12)
at Constructor.Scanner.Scanner.check_token (/Users/admin/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/scanner.js:115:19)
at Constructor.Parser.Parser.parse_block_mapping_value (/Users/admin/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/parser.js:447:19)
at Constructor.Parser.Parser.check_event (/Users/admin/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/parser.js:62:48)
at Constructor.Composer.Composer.compose_node (/Users/admin/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/composer.js:73:16)
at Constructor.Composer.Composer.compose_mapping_node (/Users/admin/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/composer.js:146:27)
-0:10.7.0 core:move-to-top (atom-text-editor.editor.is-focused)
-0:10 core:move-down (atom-text-editor.editor.is-focused)
-0:09.6.0 core:select-down (atom-text-editor.editor.is-focused)
-0:09.2.0 core:backspace (atom-text-editor.editor.is-focused)
-0:08.5.0 core:move-up (atom-text-editor.editor.is-focused)
-0:08.1.0 linter:set-bubble-transparent (atom-text-editor.editor.is-focused)
-0:06.5.0 editor:move-to-first-character-of-line (atom-text-editor.editor.is-focused)
2x -0:06.2.0 core:move-down (atom-text-editor.editor.is-focused)
-0:05.3.0 linter:set-bubble-transparent (atom-text-editor.editor.is-focused)
-0:03.1.0 editor:move-to-first-character-of-line (atom-text-editor.editor.is-focused)
-0:02.8.0 core:move-down (atom-text-editor.editor.is-focused)
-0:02.4.0 core:select-down (atom-text-editor.editor.is-focused)
-0:02.0 core:backspace (atom-text-editor.editor.is-focused)
-0:01.2.0 core:save (atom-text-editor.editor.is-focused)
{
"core": {
"disabledPackages": [
"archive-view",
"autoflow",
"image-view",
"language-clojure",
"language-csharp",
"language-objective-c",
"language-toml",
"metrics",
"package-generator",
"timecop",
"language-c",
"open-on-github",
"language-xml",
"language-sql",
"language-source",
"language-php",
"language-make",
"language-java",
"language-go",
"bookmarks",
"language-todo",
"spell-check",
"styleguide",
"autocomplete-paths",
"linter-csslint",
"autocomplete-plus",
"autocomplete-snippets",
"markdown-format"
],
"audioBeep": false,
"themes": [
"atom-dark-ui",
"atom-dark-syntax"
]
}
}
# User
autocomplete-python, v0.5.3
autocomplete-ruby, v0.1.0
language-multimarkdown, v0.0.0
language-textile, v0.2.0
linter, v1.2.4
linter-jshint, v1.1.4
linter-tidy, v1.0.1
markdown-scroll-sync, v0.4.0
remote-edit, v1.8.14
tidy-markdown, v1.0.0
# Dev
No dev packages
replace >> by > auto. but i wanna use >>
Hi slang800, great work on this plugin! A smallish issue... Daring Fireball's Markdown syntax says: "When you do want to insert a <br />
break tag using Markdown, you end a line with two or more spaces, then type return." As it is, atom-tidy-markdown "tidifies" such a forced line break into a paragraph break... Is there a chance that the forced line breaks could be preserved?
i like using indent of 4 space lengh, but your tidy pluggin make it be 2.
Could you add setting option about indent length.
I have some ordered list, whose numbers are auto changed to be wrong number. For example, my case might looks like:
# H1 header
1. blah
2. blah
3. blah
# another H1 header
1. blah
2. blah
tidy-markdown change my numbers in 2nd list to be "4." and "5.". It looks really confusing and wrong. Ordered list in different groups should not interrupt each other, even separated by simply an empty line. Please fix it!
Also, I really like auto fix table, but don't like auto remove empty lines. Can we have a setting to enable selected features?
Thanks!
I'm seeing some issues with multiple lists in one file where its thinking there is only one ordered list. Here is a reduced test case to reproduce the problem:
# title
1. list item
2. list item
3. list item
# other title
1. list item
3. list item
…gets changed to:
# title
1. list item
2. list item
3. list item
# other title
4. list item
5. list item
Expected result is for the second list numbers to be changed to 1. and 2. This also doesn't work if the second list is numbered correctly (1. and 2.).
Let me know if you need any other information from me.
Thanks for your work on this plugin!
Links like
https://github.com/slang800/atom-tidy-markdown/issues/new
are converted into
[https://github.com/slang800/atom-tidy-markdown/issues/new](https://github.com/slang800/atom-tidy-markdown/issues/new)
which is completely unnecessary and reduces readability by increasing the length of. So this should not done anymore or there should be at least a checkbox to deselect this.
[Enter steps to reproduce below:]
Atom Version: 1.2.1
System: Mac OS X 10.11
Thrown From: tidy-markdown package, v1.0.0
Uncaught while scanning for the next token
found character ` that cannot start any token
on line 3, column 31
At /Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:825
while scanning for the next token
found character ` that cannot start any token
on line 3, column 31
at ScannerError.YAMLError [as constructor] (/Users/Louis/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/errors.js:70:46)
at ScannerError.MarkedYAMLError [as constructor] (/Users/Louis/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/errors.js:90:45)
at new ScannerError (/Users/Louis/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/scanner.js:23:49)
at Constructor.global.Scanner.Scanner.fetch_more_tokens (/Users/Louis/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/scanner.js:240:13)
at Constructor.global.Scanner.Scanner.check_token (/Users/Louis/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/scanner.js:115:14)
at Constructor.global.Parser.Parser.parse_block_sequence_entry (/Users/Louis/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/parser.js:375:19)
at Constructor.global.Parser.Parser.parse_block_sequence_first_entry (/Users/Louis/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/parser.js:368:19)
at Constructor.global.Parser.Parser.check_event (/Users/Louis/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/parser.js:61:48)
at Constructor.global.Composer.Composer.compose_sequence_node (/Users/Louis/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/composer.js:123:20)
at Constructor.global.Composer.Composer.compose_node (/Users/Louis/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/composer.js:89:21)
-0:00.9.0 core:save (atom-text-editor.editor.is-focused)
{
"core": {}
}
# User
tidy-markdown, v1.0.0
# Dev
No dev packages
When I write $\{\}$
, this gets corrected to ${}$
, while it should stay $\{\}$
. It would be nice to have a config option to disable tidying in Latex.
[Enter steps to reproduce below:]
Atom Version: 1.7.3
System: Mac OS X 10.10.5
Thrown From: tidy-markdown package, v3.0.0
Uncaught while scanning for the next token
found character ` that cannot start any token
on line 4, column 1
At /Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:1002
while scanning for the next token
found character ` that cannot start any token
on line 4, column 1
at ScannerError.YAMLError [as constructor] (/Users/dhill/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/errors.js:70:46)
at ScannerError.MarkedYAMLError [as constructor] (/Users/dhill/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/errors.js:90:45)
at new ScannerError (/Users/dhill/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/scanner.js:23:49)
at Constructor.global.Scanner.Scanner.fetch_more_tokens (/Users/dhill/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/scanner.js:240:13)
at Constructor.global.Scanner.Scanner.check_token (/Users/dhill/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/scanner.js:115:14)
at Constructor.global.Parser.Parser.parse_block_mapping_key (/Users/dhill/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/parser.js:421:16)
at Constructor.global.Parser.Parser.check_event (/Users/dhill/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/parser.js:61:48)
at Constructor.global.Composer.Composer.compose_mapping_node (/Users/dhill/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/composer.js:143:20)
at Constructor.global.Composer.Composer.compose_node (/Users/dhill/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/composer.js:91:21)
at Constructor.global.Composer.Composer.compose_mapping_node (/Users/dhill/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/composer.js:145:27)
at Constructor.global.Composer.Composer.compose_node (/Users/dhill/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/composer.js:91:21)
at Constructor.global.Composer.Composer.compose_document (/Users/dhill/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/composer.js:64:19)
at Constructor.global.Composer.Composer.get_single_node (/Users/dhill/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/composer.js:51:25)
at Constructor.global.BaseConstructor.BaseConstructor.get_single_data (/Users/dhill/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/constructor.js:76:19)
at Object.global.load (/Users/dhill/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/yaml.js:112:20)
at parse (/Users/dhill/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/index.js:28:27)
at extractor (/Users/dhill/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/index.js:21:34)
at module.exports (/Users/dhill/.atom/packages/tidy-markdown/node_modules/tidy-markdown/lib/index.coffee:235:13)
at TidyMarkdown.run (/Users/dhill/.atom/packages/tidy-markdown/lib/index.coffee:40:17)
at /Users/dhill/.atom/packages/tidy-markdown/lib/index.coffee:21:12
at TextBuffer.module.exports.TextBuffer.transact (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:828:18)
at /Users/dhill/.atom/packages/tidy-markdown/lib/index.coffee:19:14
at Function.module.exports.Emitter.simpleDispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:25:14)
at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:125:28)
at TextBuffer.module.exports.TextBuffer.saveAs (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:1091:20)
at TextBuffer.module.exports.TextBuffer.save (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:1083:19)
at TextEditor.module.exports.TextEditor.save (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:660:26)
at Pane.module.exports.Pane.saveItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:718:18)
at Pane.module.exports.Pane.saveActiveItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:701:19)
at Workspace.module.exports.Workspace.saveActivePaneItem (/Applications/Atom.app/Contents/Resources/app.asar/src/workspace.js:684:35)
at atom-workspace.commandRegistry.add.core:save (/Applications/Atom.app/Contents/Resources/app.asar/src/register-default-commands.js:214:32)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260:29)
at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:580:16)
at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:388:22)
at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeyEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:98:36)
at HTMLDocument.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:3:61)
7x -0:02.8.0 core:backspace (atom-text-editor.editor.is-focused)
-0:00.6.0 core:save (atom-text-editor.editor.is-focused)
{
"core": {}
}
# User
language-ansible, v0.1.3
language-cloudslang, v0.2.1
language-hcl, v0.2.0
language-puppet, v0.19.1
tidy-markdown, v3.0.0
# Dev
No dev packages
Smallest repro:
---
`hi`
---
Any chance that there could be a checkbox added to enable / disable the cleaning of a <pre>
tag within this plugin? We have cases where there are attributes on pre tags and this blows them away and drops in a code block. We have to disable tidy markdown because of this.
/**
* some comment
*/
public static main(String[] args){
// do something
}
that is a big problem!
E.g. when using a link in a table the lines and headers could get very long. I think there should be a kind of limit for that or a special handling of links in tables.
One thing I did to make the line shorter is to use the link referring of markdown.
This package sounds like exactly what I've been looking for for a long time, but unfortunately, it doesn't play nicely with markdown files that contain YAML front matter (e.g., Jekyll sites, used in places like GitHub pages).
YAML front matter might look like this:
---
title: "Awesome markdown file"
---
My content
Right now, this would create an HR followed by an H1. Instead, it'd be great if the plugin (or upstream library) could split the content on /^---\n.*?\n---\n\n/m
and not act on the first element, if present.
[Enter steps to reproduce below:]
Atom Version: 1.5.3
System: Mac OS X 10.11.2
Thrown From: tidy-markdown package, v1.0.0
Uncaught expected '', but found
on line 2, column 1
At /Users/sx/Downloads/Atom.app/Contents/Resources/app.asar/src/pane.js:825
expected '<document start>', but found <scalar>
on line 2, column 1
at ParserError.YAMLError [as constructor] (/Users/sx/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/errors.js:70:46)
at ParserError.MarkedYAMLError [as constructor] (/Users/sx/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/errors.js:90:45)
at new ParserError (/Users/sx/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/parser.js:17:48)
at Constructor.global.Parser.Parser.parse_document_start (/Users/sx/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/parser.js:152:17)
at Constructor.global.Parser.Parser.check_event (/Users/sx/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/parser.js:61:48)
at Constructor.global.Composer.Composer.get_single_node (/Users/sx/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/composer.js:53:17)
at Constructor.global.BaseConstructor.BaseConstructor.get_single_data (/Users/sx/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/constructor.js:76:19)
at Object.global.load (/Users/sx/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/yaml.js:112:20)
at parse (/Users/sx/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/index.js:28:27)
at extractor (/Users/sx/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/index.js:21:34)
at module.exports (/Users/sx/.atom/packages/tidy-markdown/node_modules/tidy-markdown/lib/index.coffee:274:13)
at Object.module.exports.run (/Users/sx/.atom/packages/tidy-markdown/lib/index.coffee:49:17)
at /Users/sx/.atom/packages/tidy-markdown/lib/index.coffee:30:12
at TextBuffer.module.exports.TextBuffer.transact (/Users/sx/Downloads/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:805:18)
at /Users/sx/.atom/packages/tidy-markdown/lib/index.coffee:28:14
at Function.module.exports.Emitter.simpleDispatch (/Users/sx/Downloads/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:25:14)
at Emitter.module.exports.Emitter.emit (/Users/sx/Downloads/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:125:28)
at TextBuffer.module.exports.TextBuffer.saveAs (/Users/sx/Downloads/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:1045:20)
at TextBuffer.module.exports.TextBuffer.save (/Users/sx/Downloads/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:1037:19)
at TextEditor.module.exports.TextEditor.save (/Users/sx/Downloads/Atom.app/Contents/Resources/app.asar/src/text-editor.js:630:26)
at Pane.module.exports.Pane.saveItem (/Users/sx/Downloads/Atom.app/Contents/Resources/app.asar/src/pane.js:545:18)
at Pane.module.exports.Pane.saveActiveItem (/Users/sx/Downloads/Atom.app/Contents/Resources/app.asar/src/pane.js:528:19)
at Workspace.module.exports.Workspace.saveActivePaneItem (/Users/sx/Downloads/Atom.app/Contents/Resources/app.asar/src/workspace.js:649:35)
at atom-workspace.commandRegistry.add.core:save (/Users/sx/Downloads/Atom.app/Contents/Resources/app.asar/src/register-default-commands.js:173:32)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Users/sx/Downloads/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260:29)
at /Users/sx/Downloads/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Users/sx/Downloads/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:536:16)
at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Users/sx/Downloads/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:359:22)
at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeydown (/Users/sx/Downloads/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:97:36)
at HTMLDocument.<anonymous> (/Users/sx/Downloads/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:3:61)
25x -2:10.5.0 core:backspace (atom-text-editor.editor.mini.is-focused)
-1:47.3.0 core:select-up (atom-text-editor.editor.is-focused)
-1:45.1.0 markdown-themeable-pdf:export (atom-text-editor.editor.is-focused)
-1:26.2.0 core:select-all (atom-text-editor.editor.is-focused)
-1:25.7.0 core:backspace (atom-text-editor.editor.is-focused)
-1:18.1.0 tree-view:remove (li.file.entry.list-item.status-added.selected)
-1:12.3.0 core:select-all (atom-text-editor.editor.is-focused)
3x -1:11.8.0 core:backspace (atom-text-editor.editor.is-focused)
-1:05.2.0 markdown-themeable-pdf:export (atom-text-editor.editor.is-focused)
-0:48.1.0 tree-view:copy (li.file.entry.list-item.status-added.selected)
-0:45.6.0 tree-view:remove (span.name.icon.icon-file-pdf)
3x -0:26.8.0 markdown-preview:toggle (atom-text-editor.editor.is-focused)
-0:19.3.0 core:save-as (div.markdown-preview.native-key-bindings)
-0:05.9.0 core:select-all (atom-text-editor.editor.is-focused)
-0:05.4.0 core:paste (atom-text-editor.editor.is-focused)
3x -0:01.6.0 core:save (atom-text-editor.editor.is-focused)
{
"core": {
"disabledPackages": [
"markdown-writer",
"markdown-pdf",
"markdown-themeable-pdf"
],
"ignoredNames": [
".idea",
"*.pyc"
],
"themes": [
"one-dark-ui",
"solarized-dark-syntax"
]
}
}
# User
atomatigit, v1.5.5
autocomplete-python, v1.5.1
language-diff, v0.4.0
markdown-scroll-sync, v2.0.3
minimap, v4.19.0
seti-icons, v0.4.5
sync-settings, v0.6.0
tidy-markdown, v1.0.0
# Dev
No dev packages
One noteworthy thing on my machine: I installed atom when I had the default OS X Ruby version selected, and then after I switched to using 1.9.3-p547 system wide using rbenv.
Atom Version: 0.187.0
System: Mac OS X 10.10.3
Thrown From: tidy-markdown package, v0.1.0
Failed to load the tidy-markdown package
At Cannot find module 'tidy-markdown'
Error: Cannot find module 'tidy-markdown'
at Module._resolveFilename (module.js:351:15)
at Function.Module._resolveFilename (/Applications/Atom.app/Contents/Resources/app/src/module-cache.js:383:52)
at Function.Module._load (module.js:293:25)
at Module.require (module.js:380:17)
at require (module.js:399:17)
at Object.<anonymous> (/Users/krismcginnes/.atom/packages/tidy-markdown/lib/tidy-markdown.coffee:2:16)
at Object.<anonymous> (/Users/krismcginnes/.atom/packages/tidy-markdown/lib/tidy-markdown.coffee:1:1)
at Module._compile (module.js:475:26)
at Object.requireCoffeeScript (/Applications/Atom.app/Contents/Resources/app/node_modules/coffee-cash/lib/coffee-cash.js:85:19)
at Module.load (module.js:370:32)
at Function.Module._load (module.js:325:12)
at Module.require (module.js:380:17)
at require (module.js:399:17)
at Object.<anonymous> (/Users/krismcginnes/.atom/packages/tidy-markdown/lib/index.coffee:1:16)
at Object.<anonymous> (/Users/krismcginnes/.atom/packages/tidy-markdown/lib/index.coffee:1:1)
at Module._compile (module.js:475:26)
at Object.requireCoffeeScript (/Applications/Atom.app/Contents/Resources/app/node_modules/coffee-cash/lib/coffee-cash.js:85:19)
at Module.load (module.js:370:32)
at Function.Module._load (module.js:325:12)
at Module.require (module.js:380:17)
at require (module.js:399:17)
at Package.module.exports.Package.requireMainModule (/Applications/Atom.app/Contents/Resources/app/src/package.js:672:34)
at /Applications/Atom.app/Contents/Resources/app/src/package.js:189:28
at Package.module.exports.Package.measure (/Applications/Atom.app/Contents/Resources/app/src/package.js:167:15)
at Package.module.exports.Package.load (/Applications/Atom.app/Contents/Resources/app/src/package.js:181:12)
at PackageManager.module.exports.PackageManager.loadPackage (/Applications/Atom.app/Contents/Resources/app/src/package-manager.js:383:14)
at PackageManager.module.exports.PackageManager.activatePackage (/Applications/Atom.app/Contents/Resources/app/src/package-manager.js:464:30)
at /Applications/Atom.app/Contents/Resources/app/node_modules/settings-view/lib/package-manager.js:268:29
at exit (/Applications/Atom.app/Contents/Resources/app/node_modules/settings-view/lib/package-manager.js:43:16)
at BufferedProcess.triggerExitCallback (/Applications/Atom.app/Contents/Resources/app/src/buffered-process.js:63:47)
at /Applications/Atom.app/Contents/Resources/app/src/buffered-process.js:77:18
at Socket.<anonymous> (/Applications/Atom.app/Contents/Resources/app/src/buffered-process.js:150:18)
at Socket.emit (events.js:138:20)
at Pipe.close (net.js:477:12)
-3:27.4 settings-view:open (atom-text-editor.editor)
-0:14.1 core:confirm (atom-text-editor.editor.mini)
{
"core": {
"themes": [
"atom-dark-ui",
"atom-dark-syntax"
]
}
}
# User
tidy-markdown, v0.1.0
# Dev
No dev packages
I also got this. This does not affect functionality as far as I can tell.
atom.workspaceView is no longer available.
In most cases you will not need the view. See the Workspace docs for alternatives: https://atom.io/docs/api/latest/Workspace.
If you do need the view, please useatom.views.getView(atom.workspace)
, which returns an HTMLElement.
Atom.Object.defineProperty.get (/Applications/Atom.app/Contents/Resources/app/src/atom.js:54:11)
new TidyMarkdown (/Users/krismcginnes/.atom/packages/tidy-markdown/lib/tidy-markdown.coffee:11:29)
Given:
- Possible options for the first argument:
- adapter
- defaults to `wildfire.adapters.Memory`
- httpServer
- defaults to creating a new http server
- if this option is not provided, you must call `.listen()`
this will change it to
- Possible options for the first argument:
- adapter
- defaults to `wildfire.adapters.Memory`
- httpServer
- defaults to creating a new http server
- if this option is not provided, you must call `.listen()`
which displays differently (adds a bunch of space between items)
[Enter steps to reproduce below:]
Atom Version: 1.0.2
System: Mac OS X 10.10.4
Thrown From: tidy-markdown package, v1.0.0
Uncaught mapping values are not allowed here
on line 1, column 19
At /Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:774
mapping values are not allowed here
on line 1, column 19
at ScannerError.YAMLError (/Users/nmenag/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/errors.js:70:46)
at ScannerError.MarkedYAMLError (/Users/nmenag/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/errors.js:90:45)
at new ScannerError (/Users/nmenag/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/scanner.js:23:49)
at Constructor.Scanner.Scanner.fetch_value (/Users/nmenag/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/scanner.js:505:19)
at Constructor.Scanner.Scanner.fetch_more_tokens (/Users/nmenag/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/scanner.js:215:21)
at Constructor.Scanner.Scanner.check_token (/Users/nmenag/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/scanner.js:116:14)
at Constructor.Parser.Parser.parse_block_mapping_key (/Users/nmenag/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/parser.js:422:16)
at Constructor.Parser.Parser.check_event (/Users/nmenag/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/parser.js:62:48)
at Constructor.Composer.Composer.compose_mapping_node (/Users/nmenag/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/composer.js:144:20)
at Constructor.Composer.Composer.compose_node (/Users/nmenag/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/composer.js:92:21)
at Constructor.Composer.Composer.compose_document (/Users/nmenag/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/composer.js:65:19)
at Constructor.Composer.Composer.get_single_node (/Users/nmenag/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/composer.js:52:25)
at Constructor.BaseConstructor.BaseConstructor.get_single_data (/Users/nmenag/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/constructor.js:77:19)
at Object.load (/Users/nmenag/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/yaml.js:112:20)
at parse (/Users/nmenag/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/index.js:28:27)
at extractor (/Users/nmenag/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/index.js:21:34)
at module.exports (/Users/nmenag/.atom/packages/tidy-markdown/node_modules/tidy-markdown/lib/index.coffee:303:15)
at Object.module.exports.run (/Users/nmenag/.atom/packages/tidy-markdown/lib/index.coffee:70:19)
at /Users/nmenag/.atom/packages/tidy-markdown/lib/index.coffee:45:28
at TextBuffer.module.exports.TextBuffer.transact (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:740:18)
at /Users/nmenag/.atom/packages/tidy-markdown/lib/index.coffee:43:25
at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)
at TextBuffer.module.exports.TextBuffer.saveAs (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:985:20)
at TextBuffer.module.exports.TextBuffer.save (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:978:19)
at TextEditor.module.exports.TextEditor.save (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:579:26)
at Pane.module.exports.Pane.saveItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:535:18)
at Pane.module.exports.Pane.saveActiveItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:518:19)
at Workspace.module.exports.Workspace.saveActivePaneItem (/Applications/Atom.app/Contents/Resources/app.asar/src/workspace.js:592:35)
at atom-workspace.atom.commands.add.core:save (/Applications/Atom.app/Contents/Resources/app.asar/src/workspace-element.js:311:30)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:241:29)
at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:520:16)
at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:355:22)
at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:177:20)
-0:15.3.0 core:copy (atom-text-editor.editor.is-focused)
-0:11.2.0 emmet:insert-formatted-line-break-only (atom-text-editor.editor.is-focused)
-0:11 markdown-writer:insert-new-line (atom-text-editor.editor.is-focused)
-0:09.9.0 emmet:insert-formatted-line-break-only (atom-text-editor.editor.is-focused)
-0:09.9.0 markdown-writer:insert-new-line (atom-text-editor.editor.is-focused)
-0:09.1.0 core:backspace (atom-text-editor.editor.is-focused)
-0:08.0 core:paste (atom-text-editor.editor.is-focused)
-0:04.9.0 core:backspace (atom-text-editor.editor.is-focused)
-0:03.9.0 core:save (atom-text-editor.editor.is-focused)
{
"core": {
"themes": [
"seti-ui",
"monokai"
]
}
}
# User
atom-color-highlight, v3.0.9
autocomplete-php, v0.3.6
autocomplete-ruby, v0.1.0
autocomplete-sass, v0.1.0
bug-report, v0.7.1
color-picker, v2.0.10
css-snippets, v0.8.0
emmet, v2.3.12
highlight-line, v0.11.0
linter, v1.2.4
markdown-format, v2.5.1
markdown-writer, v1.6.0
minimap, v4.11.2
monokai, v0.14.0
project-manager, v1.15.11
seti-ui, v0.7.1
tidy-markdown, v1.0.0
# Dev
No dev packages
I think the problem was that my first line was
Heading
===
and after that next line was
Subheading
---
Without having any text in between Heading and subheading, when I wrote something the error was gone.
Atom Version: 1.0.2
System: Mac OS X 10.10.4
Thrown From: tidy-markdown package, v1.0.0
Uncaught mapping values are not allowed here
on line 4, column 22
At /Users/puneetsingh/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/scanner.js:505
mapping values are not allowed here
on line 4, column 22
at ScannerError.YAMLError (/Users/puneetsingh/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/errors.js:70:46)
at ScannerError.MarkedYAMLError (/Users/puneetsingh/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/errors.js:90:45)
at new ScannerError (/Users/puneetsingh/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/scanner.js:23:49)
at Constructor.Scanner.Scanner.fetch_value (/Users/puneetsingh/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/scanner.js:505:19)
at Constructor.Scanner.Scanner.fetch_more_tokens (/Users/puneetsingh/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/scanner.js:215:21)
at Constructor.Scanner.Scanner.peek_token (/Users/puneetsingh/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/scanner.js:139:14)
at Constructor.Parser.Parser.parse_document_end (/Users/puneetsingh/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/parser.js:181:20)
at Constructor.Parser.Parser.get_event (/Users/puneetsingh/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/parser.js:99:46)
at Constructor.Composer.Composer.compose_document (/Users/puneetsingh/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/composer.js:66:12)
at Constructor.Composer.Composer.get_single_node (/Users/puneetsingh/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/composer.js:52:25)
at Constructor.BaseConstructor.BaseConstructor.get_single_data (/Users/puneetsingh/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/constructor.js:77:19)
at Object.load (/Users/puneetsingh/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/yaml.js:112:20)
at parse (/Users/puneetsingh/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/index.js:28:27)
at extractor (/Users/puneetsingh/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/index.js:21:34)
at module.exports (/Users/puneetsingh/.atom/packages/tidy-markdown/node_modules/tidy-markdown/lib/index.coffee:274:13)
at Object.module.exports.run (/Users/puneetsingh/.atom/packages/tidy-markdown/lib/index.coffee:49:17)
at atom-workspace.subscriptions.add.atom.commands.add.tidy-markdown:run (/Users/puneetsingh/.atom/packages/tidy-markdown/lib/index.coffee:20:32)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:241:29)
at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
at CommandPaletteView.module.exports.CommandPaletteView.confirmed (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/command-palette/lib/command-palette-view.js:159:32)
at CommandPaletteView.module.exports.SelectListView.confirmSelection (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/lib/select-list-view.js:338:21)
at space-pen-div.atom.commands.add.core:confirm (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/lib/select-list-view.js:109:19)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:241:29)
at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:520:16)
at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:355:22)
at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:177:20)
-0:58.5.0 core:backspace (atom-text-editor.editor.is-focused)
-0:57.2.0 core:move-up (atom-text-editor.editor.is-focused)
2x -0:57 core:move-left (atom-text-editor.editor.is-focused)
-0:56.6.0 snippets:next-tab-stop (atom-text-editor.editor.is-focused)
-0:56.6.0 snippets:expand (atom-text-editor.editor.is-focused)
-0:56.6.0 editor:indent (atom-text-editor.editor.is-focused)
-0:56.3.0 core:move-down (atom-text-editor.editor.is-focused)
2x -0:56.2.0 core:move-left (atom-text-editor.editor.is-focused)
-0:55.6.0 snippets:next-tab-stop (atom-text-editor.editor.is-focused)
-0:55.6.0 snippets:expand (atom-text-editor.editor.is-focused)
-0:55.6.0 editor:indent (atom-text-editor.editor.is-focused)
-0:31.5.0 core:save (atom-text-editor.editor.is-focused)
-0:06.8.0 command-palette:toggle (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
2x -0:03.8.0 core:backspace (atom-text-editor.editor.mini.is-focused)
-0:01.0 core:confirm (atom-text-editor.editor.mini.is-focused)
-0:01.0 tidy-markdown:run (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
{
"core": {}
}
# User
markdown-lists, v0.0.2
markdown-preview-katex, v0.3.4
tidy-markdown, v1.0.0
# Dev
No dev packages
Hello,
When editing a markdown file with "---" if I save the file tidy-markdown automatically converts it to a header "--------". This breaks the reveal.js slides.
Thanks!
I think similar to markdown-table-formatter it would be great if you could keep the first and last pipe in a table.
Some example code: https://gist.github.com/rugk/860d81779433bdbb2f64
[Enter steps to reproduce below:]
Atom Version: 1.0.19
System: Mac OS X 10.10.5
Thrown From: tidy-markdown package, v1.0.0
Uncaught TypeError: Cannot read property 'getGrammar' of undefined
At /Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:809
TypeError: Cannot read property 'getGrammar' of undefined
at Object.module.exports.run (/Users/DaVinci/.atom/packages/tidy-markdown/lib/index.coffee:46:14)
at /Users/DaVinci/.atom/packages/tidy-markdown/lib/index.coffee:30:12
at TextBuffer.module.exports.TextBuffer.transact (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:767:18)
at /Users/DaVinci/.atom/packages/tidy-markdown/lib/index.coffee:28:14
at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)
at TextBuffer.module.exports.TextBuffer.saveAs (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:1012:20)
at TextBuffer.module.exports.TextBuffer.save (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:1004:19)
at TextEditor.module.exports.TextEditor.save (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:584:26)
at Pane.module.exports.Pane.saveItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:547:18)
at Object.module.exports.autosavePaneItem (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/autosave/lib/autosave.js:64:21)
at /Applications/Atom.app/Contents/Resources/app.asar/node_modules/autosave/lib/autosave.js:29:26
at atom-pane.PaneElement.activeItemChanged (/Applications/Atom.app/Contents/Resources/app.asar/src/pane-element.js:165:25)
at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)
at Pane.module.exports.Pane.setActiveItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:250:22)
at Pane.module.exports.Pane.activateItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:314:21)
at tabs-tab.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/tabs/lib/tab-bar-view.js:210:24)
at space-pen-ul.jQuery.event.dispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/jquery/dist/jquery.js:4435:9)
at space-pen-ul.elemData.handle (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/jquery/dist/jquery.js:4121:28)
-1:25.1.0 editor:newline (atom-text-editor.editor.is-focused)
4x -1:24.2.0 core:backspace (atom-text-editor.editor.is-focused)
-1:21.3.0 editor:newline (atom-text-editor.editor.is-focused)
6x -1:19.9.0 core:undo (atom-text-editor.editor.is-focused)
8x -1:13.8.0 core:backspace (atom-text-editor.editor.is-focused)
-0:26.4.0 grammar-selector:show (atom-text-editor.editor)
-0:23.8.0 core:move-down (atom-text-editor.editor.mini.is-focused)
-0:23.6.0 core:confirm (atom-text-editor.editor.mini.is-focused)
3x -0:19.9.0 editor:newline (atom-text-editor.editor.is-focused)
2x -0:16 core:undo (atom-text-editor.editor.is-focused)
-0:13.9.0 grammar-selector:show (atom-text-editor.editor)
-0:12 core:confirm (atom-text-editor.editor.mini.is-focused)
-0:08.1.0 editor:newline (atom-text-editor.editor.is-focused)
-0:06.7.0 core:undo (atom-text-editor.editor.is-focused)
3x -0:04.0 core:backspace (atom-text-editor.editor.is-focused)
{
"core": {
"themes": [
"atom-material-ui",
"solarized-light-syntax"
],
"disabledPackages": [
"pigments",
"language-go",
"language-make",
"language-mustache",
"language-objective-c",
"language-perl",
"language-php",
"language-ruby",
"language-ruby-on-rails",
"language-shellscript",
"language-source",
"language-sql",
"language-xml",
"language-yaml",
"language-toml",
"language-todo",
"link",
"language-csharp"
]
}
}
# User
atom-material-ui, v0.6.1
color-picker, v2.0.12
language-arduino, v0.3.1
processing-language, v0.2.0
tidy-markdown, v1.0.0
# Dev
No dev packages
having <nobr/>
causes this to be generated when tidy is run:
<nobr>
</nobr>
<nobr> .... a bunch of reformatted stuff... </nobr>
When I use & lt;(with out the space)
in text, it was automatically transferred to <
sign.
I am writing a doc and want to display inline raw html in it, this made my code disappear.
the first one isn't the same size as the others, and the 2nd one is wrong because of changes introduced by notslang/tidy-markdown#25
[Enter steps to reproduce below:]
Atom Version: 1.5.3
System: Mac OS X 10.11.3
Thrown From: tidy-markdown package, v1.0.0
Uncaught expected '', but found
on line 9, column 1
At /Users/vj/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/parser.js:152
expected '<document start>', but found <scalar>
on line 9, column 1
at ParserError.YAMLError [as constructor] (/Users/vj/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/errors.js:70:46)
at ParserError.MarkedYAMLError [as constructor] (/Users/vj/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/errors.js:90:45)
at new ParserError (/Users/vj/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/parser.js:17:48)
at Constructor.global.Parser.Parser.parse_document_start (/Users/vj/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/parser.js:152:17)
at Constructor.global.Parser.Parser.check_event (/Users/vj/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/parser.js:61:48)
at Constructor.global.Composer.Composer.get_single_node (/Users/vj/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/composer.js:53:17)
at Constructor.global.BaseConstructor.BaseConstructor.get_single_data (/Users/vj/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/constructor.js:76:19)
at Object.global.load (/Users/vj/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/yaml.js:112:20)
at parse (/Users/vj/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/index.js:28:27)
at extractor (/Users/vj/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/index.js:21:34)
at module.exports (/Users/vj/.atom/packages/tidy-markdown/node_modules/tidy-markdown/lib/index.coffee:274:13)
at Object.module.exports.run (/Users/vj/.atom/packages/tidy-markdown/lib/index.coffee:49:17)
at atom-workspace.subscriptions.add.atom.commands.add.tidy-markdown:run (/Users/vj/.atom/packages/tidy-markdown/lib/index.coffee:20:32)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260:29)
at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
at CommandPaletteView.module.exports.CommandPaletteView.confirmed (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/command-palette/lib/command-palette-view.js:183:32)
at CommandPaletteView.module.exports.SelectListView.confirmSelection (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/lib/select-list-view.js:338:21)
at space-pen-div.atom.commands.add.core:confirm (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/lib/select-list-view.js:109:19)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260:29)
at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:536:16)
at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:359:22)
at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeydown (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:97:36)
at HTMLDocument.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:3:61)
-4:21.2.0 core:undo (atom-text-editor.editor.is-focused.vim-mode.normal-mode)
-4:10 tree-view:toggle (atom-text-editor.editor.is-focused.vim-mode.normal-mode)
-4:04.5.0 command-palette:toggle (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
2x -4:02.2.0 core:backspace (atom-text-editor.editor.mini.is-focused)
-4:00.7.0 core:confirm (atom-text-editor.editor.mini.is-focused)
-4:00.7.0 tidy-markdown:run (atom-text-editor.editor.vim-mode.normal-mode)
2x -2:14.7.0 core:close (div.pane-item.native-key-bindings.about)
-0:11.1.0 fuzzy-finder:toggle-file-finder (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
-0:09.4.0 editor:consolidate-selections (atom-text-editor.editor.mini.is-focused)
-0:09.4.0 core:cancel (atom-text-editor.editor.mini.is-focused)
-0:07.9.0 fuzzy-finder:toggle-file-finder (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
-0:05.3.0 editor:consolidate-selections (atom-text-editor.editor.mini.is-focused)
-0:05.3.0 core:cancel (atom-text-editor.editor.mini.is-focused)
-0:04.1.0 command-palette:toggle (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
-0:00.8.0 core:confirm (atom-text-editor.editor.mini.is-focused)
-0:00.8.0 tidy-markdown:run (atom-text-editor.editor.vim-mode.normal-mode)
{
"core": {
"disabledPackages": [
"term2"
],
"themes": [
"nucleus-dark-ui",
"base16-tomorrow-dark-theme"
]
}
}
# User
Zen, v0.16.4
emmet, v2.4.1
language-swift, v0.4.0
linter, v1.11.3
minimap, v4.19.0
nucleus-dark-ui, v0.7.10
nuclide-installer, vundefined
tidy-markdown, v1.0.0
vim-mode, v0.64.0
vim-surround, v0.8.1
# Dev
No dev packages
I would use this, but there are two major problems with it for me. First, it removes blank lines between headers and the paragraphs beneath them. I intentionally put this whitespace in to improve readibility. Second, it removes whitespace between bullet items. I have many cases where I intentionally space between bullets.
These are matters of personal taste, so I propose that these sorts of actions be configurable. Develop a Settings page and add options for things as they are requested.
I noticed that <img>
tags seem to be corrected too aggressively.
I have several files where I include images with something like <img src="my image.png" width=500>
because the image itself is too large for a nice layout. Tidy Markdown converts these into ![](my image.png)
. This strips the width
information, and disrupts layout.
Possible solutions (pick one:
<img>
tags.src
.I tried to disable tidy markdown after encountering some bugs (like --- turning into a whole line of breaks that was reported here, and sub list spacing that others reported). However the plugin keeps running and on every save I still get things changed. I had to close atom (which ended up not responding) and had to be killed.
Please try the disable button and see if it actually works.
[Enter steps to reproduce below:]
Atom Version: 1.6.2
System: Mac OS X 10.11.4
Thrown From: tidy-markdown package, v2.0.0
Uncaught expected '', but found
on line 5, column 1
At /Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:896
expected '<document start>', but found <scalar>
on line 5, column 1
at ParserError.YAMLError [as constructor] (/Users/tsmith/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/errors.js:70:46)
at ParserError.MarkedYAMLError [as constructor] (/Users/tsmith/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/errors.js:90:45)
at new ParserError (/Users/tsmith/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/parser.js:17:48)
at Constructor.global.Parser.Parser.parse_document_start (/Users/tsmith/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/parser.js:152:17)
at Constructor.global.Parser.Parser.check_event (/Users/tsmith/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/parser.js:61:48)
at Constructor.global.Composer.Composer.get_single_node (/Users/tsmith/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/composer.js:53:17)
at Constructor.global.BaseConstructor.BaseConstructor.get_single_data (/Users/tsmith/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/constructor.js:76:19)
at Object.global.load (/Users/tsmith/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/yaml.js:112:20)
at parse (/Users/tsmith/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/index.js:28:27)
at extractor (/Users/tsmith/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/index.js:21:34)
at module.exports (/Users/tsmith/.atom/packages/tidy-markdown/node_modules/tidy-markdown/lib/index.coffee:138:13)
at Object.module.exports.run (/Users/tsmith/.atom/packages/tidy-markdown/lib/index.coffee:49:17)
at /Users/tsmith/.atom/packages/tidy-markdown/lib/index.coffee:30:12
at TextBuffer.module.exports.TextBuffer.transact (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:811:18)
at /Users/tsmith/.atom/packages/tidy-markdown/lib/index.coffee:28:14
at Function.module.exports.Emitter.simpleDispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:25:14)
at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:125:28)
at TextBuffer.module.exports.TextBuffer.saveAs (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:1051:20)
at TextBuffer.module.exports.TextBuffer.save (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:1043:19)
at TextEditor.module.exports.TextEditor.save (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:629:26)
at Pane.module.exports.Pane.saveItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:613:18)
at Pane.module.exports.Pane.promptToSaveItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:585:23)
at Pane.module.exports.Pane.destroyItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:531:18)
at Pane.module.exports.Pane.destroyActiveItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:512:12)
at Workspace.module.exports.Workspace.destroyActivePaneItem (/Applications/Atom.app/Contents/Resources/app.asar/src/workspace.js:681:35)
at Workspace.module.exports.Workspace.closeActivePaneItemOrEmptyPaneOrWindow (/Applications/Atom.app/Contents/Resources/app.asar/src/workspace.js:720:21)
at atom-workspace.commandRegistry.add.core:close (/Applications/Atom.app/Contents/Resources/app.asar/src/register-default-commands.js:202:32)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260:29)
at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:580:16)
2x -0:03.6.0 core:close (atom-text-editor.editor.is-focused)
{
"core": {
"disabledPackages": [
"linter-foodcritic"
]
}
}
# User
autocomplete-plus, v2.29.2
language-chef, v0.9.0
language-dotfiles, v0.2.0
language-syslog-ng, v0.0.6
linter, v1.11.4
linter-checkbashisms, v0.1.5
linter-js-yaml, v1.2.5
linter-rubocop, v0.4.7
minimap, v4.21.0
pretty-json, v1.0.3
tidy-markdown, v2.0.0
# Dev
No dev packages
atom.workspaceView is no longer available.
In most cases you will not need the view. See the Workspace docs for
alternatives: https://atom.io/docs/api/latest/Workspace.
If you do need the view, please use atom.views.getView(atom.workspace)
,
which returns an HTMLElement.
Atom.Object.defineProperty.get (/Applications/Atom.app/Contents/Resources/app/src/atom.js:54:11)
new TidyMarkdown (/Users/gcman105_mbp/.atom/packages/tidy-markdown/lib/tidy-markdown.coffee:11:29)
[Enter steps to reproduce below:]
Atom Version: 1.7.3
System: Mac OS X 10.11.4
Thrown From: tidy-markdown package, v3.0.0
Uncaught TypeError: Cannot read property 'length' of undefined
At /Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:1002
TypeError: Cannot read property 'length' of undefined
at extractRows (/Users/tristan/.atom/packages/tidy-markdown/node_modules/tidy-markdown/lib/tables.coffee:83:36)
at Object.module.exports.replacement (/Users/tristan/.atom/packages/tidy-markdown/node_modules/tidy-markdown/lib/converters.coffee:130:28)
at process (/Users/tristan/.atom/packages/tidy-markdown/node_modules/tidy-markdown/lib/index.coffee:208:33)
at module.exports (/Users/tristan/.atom/packages/tidy-markdown/node_modules/tidy-markdown/lib/index.coffee:270:5)
at TidyMarkdown.run (/Users/tristan/.atom/packages/tidy-markdown/lib/index.coffee:40:17)
at /Users/tristan/.atom/packages/tidy-markdown/lib/index.coffee:21:12
at TextBuffer.module.exports.TextBuffer.transact (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:828:18)
at /Users/tristan/.atom/packages/tidy-markdown/lib/index.coffee:19:14
at Function.module.exports.Emitter.simpleDispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:25:14)
at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:125:28)
at TextBuffer.module.exports.TextBuffer.saveAs (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:1091:20)
at TextBuffer.module.exports.TextBuffer.save (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:1083:19)
at TextEditor.module.exports.TextEditor.save (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:660:26)
at Pane.module.exports.Pane.saveItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:718:18)
at Pane.module.exports.Pane.saveActiveItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:701:19)
at Workspace.module.exports.Workspace.saveActivePaneItem (/Applications/Atom.app/Contents/Resources/app.asar/src/workspace.js:684:35)
at atom-workspace.commandRegistry.add.core:save (/Applications/Atom.app/Contents/Resources/app.asar/src/register-default-commands.js:214:32)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260:29)
at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:580:16)
at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:388:22)
at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeyEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:98:36)
at HTMLDocument.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:3:61)
-0:22.3.0 autocomplete-plus:confirm (atom-text-editor.editor.is-focused.autocomplete-active)
2x -0:21.5.0 core:move-down (atom-text-editor.editor.is-focused)
3x -0:20.8.0 editor:move-to-end-of-word (atom-text-editor.editor.is-focused)
4x -0:19.5.0 core:undo (atom-text-editor.editor.is-focused)
-0:17.4.0 core:move-down (atom-text-editor.editor.is-focused)
3x -0:17.1.0 editor:move-to-end-of-word (atom-text-editor.editor.is-focused)
3x -0:16.5.0 core:move-right (atom-text-editor.editor.is-focused)
-0:16 editor:select-to-end-of-word (atom-text-editor.editor.is-focused)
-0:15.6.0 core:backspace (atom-text-editor.editor.is-focused)
-0:14.6.0 editor:move-to-first-character-of-line (atom-text-editor.editor.is-focused.autocomplete-active)
-0:14.5.0 editor:move-to-end-of-screen-line (atom-text-editor.editor.is-focused)
-0:13.8.0 editor:move-to-first-character-of-line (atom-text-editor.editor.is-focused)
-0:13.7.0 editor:move-to-end-of-screen-line (atom-text-editor.editor.is-focused)
-0:13.6.0 core:save (atom-text-editor.editor.is-focused)
-0:13.3.0 editor:move-to-first-character-of-line (atom-text-editor.editor.is-focused)
2x -0:13.2.0 core:save (atom-text-editor.editor.is-focused)
{
"core": {
"ignoredNames": [
".git",
".svn",
".DS_Store"
],
"themes": [
"atom-dark-ui",
"atom-dark-syntax"
]
},
"tidy-markdown": {
"ensureFirstHeaderIsH1": false
}
}
# User
atom-beautify, v0.29.7
docblockr, v0.7.3
linter, v1.11.4
linter-js-standard, v3.3.2
pretty-json, v1.0.3
standard-formatter, v2.0.0
tidy-markdown, v3.0.0
# Dev
No dev packages
Hello.
I am trying to install your extension but I must use an HTTP proxy to reach the internet. However, when I try to install your extension, it tries to clone git://github.com/slang800/tidy-markdown.git
, which is not possible behind a proxy.
Would it be possible to use http://
instead of git://
? Most other Atom extensions do it this way and everything works fine (once I properly setup proxy configuration at my workstation).
Thanks in advance
the code snippet
* complex query
```sql
MATCH (d:District {state: {state}, district: {district}})
MATCH (d)<-[:REPRESENTS]-(l:Legislator)
MATCH (l)-[:SERVES_ON]->(c:Committee)
MATCH (c)<-[:REFERRED_TO]-(b:Bill)
MATCH (b)-[:DEALS_WITH]->(s:Subject)
WITH l.govtrackID AS govtrackID, l.lastName AS lastName, l.firstName AS firstName, l.currentParty AS party, s.title AS subject, count(*) AS strength, collect(DISTINCT c.name) AS committees ORDER BY strength DESC LIMIT 10
WITH {lastName: lastName, firstName: firstName, govtrackID: govtrackID, party: party, committees: committees} AS legislator, collect({subject: subject, strength: strength}) AS subjects
RETURN {legislator: legislator, subjects: subjects} AS r
```
convert to a list
- complex query
- MATCH (d:District {state: {state}, district: {district}})
MATCH (d)<-[:REPRESENTS]-(l:Legislator)
MATCH (l)-[:SERVES_ON]->(c:Committee)
MATCH (c)<-[:REFERRED_TO]-(b:Bill)
MATCH (b)-[:DEALS_WITH]->(s:Subject)
WITH l.govtrackID AS govtrackID, l.lastName AS lastName, l.firstName AS firstName, l.currentParty AS party, s.title AS subject, count(*) AS strength, collect(DISTINCT c.name) AS committees ORDER BY strength DESC LIMIT 10
WITH {lastName: lastName, firstName: firstName, govtrackID: govtrackID, party: party, committees: committees} AS legislator, collect({subject: subject, strength: strength}) AS subjects
RETURN {legislator: legislator, subjects: subjects} AS r
When running tidy on
- **Campaign**: indicates the campaign under which the user joined, defined as the following (fictional) campaigns driven by our (also fictional) marketing team:
- **NONE** no campaign
It changes it to
- **Campaign**: indicates the campaign under which the user joined, defined as the following (fictional) campaigns driven by our (also fictional) marketing team:
- **NONE** no campaign
Notice the blank line.
[Enter steps to reproduce below:]
Not sure which line of my markdown caused the error.
Atom Version: 1.0.19
System: Mac OS X 10.11.1
Thrown From: tidy-markdown package, v1.0.0
Uncaught while scanning an alias
on line 1, column 1
expected alphabetic or numeric character but found '*'
on line 1, column 2
At /Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:809
while scanning an alias
on line 1, column 1
expected alphabetic or numeric character but found '*'
on line 1, column 2
at ScannerError.YAMLError (/Users/stanleyidesis/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/errors.js:70:46)
at ScannerError.MarkedYAMLError (/Users/stanleyidesis/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/errors.js:90:45)
at new ScannerError (/Users/stanleyidesis/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/scanner.js:23:49)
at Constructor.Scanner.Scanner.scan_anchor (/Users/stanleyidesis/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/scanner.js:893:15)
at Constructor.Scanner.Scanner.fetch_alias (/Users/stanleyidesis/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/scanner.js:522:36)
at Constructor.Scanner.Scanner.fetch_more_tokens (/Users/stanleyidesis/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/scanner.js:217:21)
at Constructor.Scanner.Scanner.check_token (/Users/stanleyidesis/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/scanner.js:115:14)
at Constructor.Parser.Parser.parse_implicit_document_start (/Users/stanleyidesis/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/parser.js:125:17)
at Constructor.Parser.Parser.check_event (/Users/stanleyidesis/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/parser.js:61:48)
at Constructor.Composer.Composer.get_single_node (/Users/stanleyidesis/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/composer.js:50:17)
at Constructor.BaseConstructor.BaseConstructor.get_single_data (/Users/stanleyidesis/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/constructor.js:76:19)
at Object.load (/Users/stanleyidesis/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/yaml.js:112:20)
at parse (/Users/stanleyidesis/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/index.js:28:27)
at extractor (/Users/stanleyidesis/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/index.js:21:34)
at module.exports (/Users/stanleyidesis/.atom/packages/tidy-markdown/node_modules/tidy-markdown/lib/index.coffee:274:13)
at Object.module.exports.run (/Users/stanleyidesis/.atom/packages/tidy-markdown/lib/index.coffee:49:17)
at /Users/stanleyidesis/.atom/packages/tidy-markdown/lib/index.coffee:30:12
at TextBuffer.module.exports.TextBuffer.transact (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:767:18)
at /Users/stanleyidesis/.atom/packages/tidy-markdown/lib/index.coffee:28:14
at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)
at TextBuffer.module.exports.TextBuffer.saveAs (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:1012:20)
at TextBuffer.module.exports.TextBuffer.save (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:1004:19)
at TextEditor.module.exports.TextEditor.save (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:584:26)
at Pane.module.exports.Pane.saveItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:547:18)
at Pane.module.exports.Pane.saveActiveItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:530:19)
at Workspace.module.exports.Workspace.saveActivePaneItem (/Applications/Atom.app/Contents/Resources/app.asar/src/workspace.js:609:35)
at atom-workspace.atom.commands.add.core:save (/Applications/Atom.app/Contents/Resources/app.asar/src/workspace-element.js:293:30)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:245:29)
at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:524:16)
at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:347:22)
at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:184:20)
-3:44.8.0 application:add-project-folder (div.settings-view.pane-item)
-0:01.4.0 core:save (atom-text-editor.editor.is-focused)
{
"core": {
"themes": [
"one-light-ui",
"one-dark-syntax"
]
},
"tidy-markdown": {
"ensureFirstHeaderIsH1": false
}
}
# User
linter-write-good, v0.6.1
markdown-preview-plus, v2.2.2
tidy-markdown, v1.0.0
typewriter, v0.3.4
# Dev
No dev packages
E.g.
- something has a footnote* which should be displayed
* a footnote
* something has a footnote* which should be displayed
\* a footnote
is tidied as
- something has a footnote* which should be displayed
- a footnote
* something has a footnote* which should be displayed
* a footnote
Every time that I try to save a markdown file with three hyphens, I receive an error. If I change three hyphens to four (----
), it saves and expands as expected.
---
for a markdown line breakAtom Version: 1.0.2
System: Mac OS X 10.10.4
Thrown From: tidy-markdown package, v1.0.0
Uncaught expected '', but found
on line 3, column 1
At /Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:774
expected '<document start>', but found <scalar>
on line 3, column 1
at ParserError.YAMLError (/Users/branden/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/errors.js:70:46)
at ParserError.MarkedYAMLError (/Users/branden/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/errors.js:90:45)
at new ParserError (/Users/branden/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/parser.js:17:48)
at Constructor.Parser.Parser.parse_document_start (/Users/branden/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/parser.js:153:17)
at Constructor.Parser.Parser.check_event (/Users/branden/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/parser.js:62:48)
at Constructor.Composer.Composer.get_single_node (/Users/branden/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/composer.js:54:17)
at Constructor.BaseConstructor.BaseConstructor.get_single_data (/Users/branden/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/constructor.js:77:19)
at Object.load (/Users/branden/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/yaml.js:112:20)
at parse (/Users/branden/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/index.js:28:27)
at extractor (/Users/branden/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/index.js:21:34)
at module.exports (/Users/branden/.atom/packages/tidy-markdown/node_modules/tidy-markdown/lib/index.coffee:274:13)
at Object.module.exports.run (/Users/branden/.atom/packages/tidy-markdown/lib/index.coffee:49:17)
at /Users/branden/.atom/packages/tidy-markdown/lib/index.coffee:30:12
at TextBuffer.module.exports.TextBuffer.transact (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:740:18)
at /Users/branden/.atom/packages/tidy-markdown/lib/index.coffee:28:14
at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)
at TextBuffer.module.exports.TextBuffer.saveAs (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:985:20)
at TextBuffer.module.exports.TextBuffer.save (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:978:19)
at TextEditor.module.exports.TextEditor.save (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:579:26)
at Pane.module.exports.Pane.saveItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:535:18)
at Pane.module.exports.Pane.saveActiveItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:518:19)
at Workspace.module.exports.Workspace.saveActivePaneItem (/Applications/Atom.app/Contents/Resources/app.asar/src/workspace.js:592:35)
at atom-workspace.atom.commands.add.core:save (/Applications/Atom.app/Contents/Resources/app.asar/src/workspace-element.js:311:30)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:241:29)
at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:520:16)
at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:355:22)
at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:177:20)
-1:30.6.0 vim-mode:reset-command-mode (atom-text-editor.editor.vim-mode.is-focused.command-mode)
67x -1:30.4.0 vim-mode:move-down (atom-text-editor.editor.vim-mode.is-focused.command-mode)
5x -1:27.8.0 vim-mode:move-up (atom-text-editor.editor.vim-mode.is-focused.command-mode)
30x -1:27.1.0 vim-mode:move-down (atom-text-editor.editor.vim-mode.is-focused.command-mode)
17x -1:25.4.0 vim-mode:move-up (atom-text-editor.editor.vim-mode.is-focused.command-mode)
5x -1:23.3.0 vim-mode:move-down (atom-text-editor.editor.vim-mode.is-focused.command-mode)
-1:21.4.0 vim-mode:insert-after-end-of-line (atom-text-editor.editor.vim-mode.is-focused.command-mode)
3x -1:21 markdown-writer:insert-new-line (atom-text-editor.editor.vim-mode.is-focused.insert-mode)
-1:13.7.0 vim-mode:activate-command-mode (atom-text-editor.editor.vim-mode.is-focused.insert-mode.autocomplete-active)
-1:12.2.0 core:save (atom-text-editor.editor.vim-mode.is-focused.command-mode)
-0:03.3.0 core:move-left (atom-text-editor.editor.vim-mode.command-mode.is-focused)
-0:02.2.0 vim-mode:reset-command-mode (atom-text-editor.editor.vim-mode.command-mode.is-focused)
-0:02.2.0 vim-mode:move-down (atom-text-editor.editor.vim-mode.command-mode.is-focused)
2x -0:01.8.0 vim-mode:delete (atom-text-editor.editor.vim-mode.command-mode.is-focused)
-0:00.9.0 vim-mode:reset-command-mode (atom-text-editor.editor.vim-mode.is-focused.command-mode)
-0:00.6.0 core:save (atom-text-editor.editor.vim-mode.is-focused.command-mode)
{
"core": {
"themes": [
"white-ui",
"sk-light-syntax"
]
}
}
# User
markdown-scroll-sync, v0.4.0
markdown-writer, v1.5.1
sk-light-syntax, v1.1.2
tidy-markdown, v1.0.0
typewriter, v0.3.3
vim-mode, v0.54.0
white-ui, v2.3.0
# Dev
No dev packages
After updating Atom I got a fatal error.
Atom Version: 0.196.0
System: Mac OS X 10.10.2
Thrown From: tidy-markdown package, v0.2.2
Failed to activate the tidy-markdown package
At undefined is not a function
TypeError: undefined is not a function
at new TidyMarkdown (/Users/joshhaug/.atom/packages/tidy-markdown/lib/tidy-markdown.coffee:12:37)
at Object.module.exports.activate (/Users/joshhaug/.atom/packages/tidy-markdown/lib/index.coffee:12:34)
at Package.module.exports.Package.activateNow (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:222:19)
at /Applications/Atom.app/Contents/Resources/app.asar/src/package.js:203:30
at Package.module.exports.Package.measure (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:147:15)
at Package.module.exports.Package.activate (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:195:14)
at PackageManager.module.exports.PackageManager.activatePackage (/Applications/Atom.app/Contents/Resources/app.asar/src/package-manager.js:434:21)
at /Applications/Atom.app/Contents/Resources/app.asar/src/package-manager.js:418:29
at Config.module.exports.Config.transact (/Applications/Atom.app/Contents/Resources/app.asar/src/config.js:311:16)
at PackageManager.module.exports.PackageManager.activatePackages (/Applications/Atom.app/Contents/Resources/app.asar/src/package-manager.js:413:19)
{
"core": {
"themes": [
"one-light-ui",
"one-dark-syntax"
],
"disabledPackages": [
"markdown-preview-plus"
]
}
}
# User
language-swift, v0.4.0
markdown-pdf, v1.3.5
minimap, v4.8.0
tidy-markdown, v0.2.2
# Dev
No dev packages
[Enter steps to reproduce below:]
Atom Version: 0.188.0
System: Mac OS X 10.10.2
Thrown From: tidy-markdown package, v0.1.1
Uncaught TypeError: Cannot read property 'trim' of undefined
At /Users/guillaume/.atom/packages/tidy-markdown/node_modules/tidy-markdown/lib/index.coffee:253
TypeError: Cannot read property 'trim' of undefined
at module.exports (/Users/guillaume/.atom/packages/tidy-markdown/node_modules/tidy-markdown/lib/index.coffee:253:50)
at TidyMarkdown.run (/Users/guillaume/.atom/packages/tidy-markdown/lib/tidy-markdown.coffee:36:17)
at atom-workspace.<anonymous> (/Users/guillaume/.atom/packages/tidy-markdown/lib/tidy-markdown.coffee:13:10)
at atom-workspace.handler (/Applications/Atom.app/Contents/Resources/app/src/space-pen-extensions.js:115:32)
at atom-workspace.jQuery.event.dispatch (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4681:9)
at atom-workspace.elemData.handle (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4359:46)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:242:29)
at /Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:61
at CommandPaletteView.module.exports.CommandPaletteView.confirmed (/Applications/Atom.app/Contents/Resources/app/node_modules/command-palette/lib/command-palette-view.js:120:32)
at CommandPaletteView.module.exports.SelectListView.confirmSelection (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-space-pen-views/lib/select-list-view.js:338:21)
at space-pen-div.atom.commands.add.core:confirm (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-space-pen-views/lib/select-list-view.js:109:19)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:242:29)
at /Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:61
at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:558:16)
at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:396:22)
at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:180:20)
-1:22.7 core:move-up (atom-text-editor.editor.is-focused)
-1:22.5 editor:select-to-end-of-word (atom-text-editor.editor.is-focused)
-1:22.4 core:move-up (atom-text-editor.editor.is-focused)
-1:22.2 editor:select-to-end-of-word (atom-text-editor.editor.is-focused)
-1:21.9 editor:move-to-end-of-screen-line (atom-text-editor.editor.is-focused)
2x -1:21.6 core:move-up (atom-text-editor.editor.is-focused)
-1:21.2 editor:select-to-first-character-of-line (atom-text-editor.editor.is-focused)
2x -1:20.9 core:move-up (atom-text-editor.editor.is-focused)
-1:20.3 core:backspace (atom-text-editor.editor.is-focused)
-1:18.4 core:move-to-top (atom-text-editor.editor.is-focused)
-1:17.5 core:save (atom-text-editor.editor.is-focused)
-1:15.8 settings-view:open (atom-text-editor.editor.is-focused)
-1:11.1 core:confirm (atom-text-editor.editor.mini)
-0:03.1 command-palette:toggle (atom-text-editor.editor.is-focused)
-0:01.0 core:confirm (atom-text-editor.editor.mini)
-0:01.0 tidy-markdown:run (atom-text-editor.editor.is-focused)
{
"core": {
"themes": [
"atom-dark-ui",
"monokai"
]
}
}
# User
linter, v0.12.0
monokai, v0.12.0
save-session, v0.12.3
tidy-markdown, v0.1.1
# Dev
No dev packages
[Enter steps to reproduce below:]
Atom Version: 0.187.0
System: Mac OS X 10.10.2
Thrown From: tidy-markdown package, v0.1.1
Uncaught TypeError: Cannot read property 'type' of undefined
At /Applications/Atom.app/Contents/Resources/app/src/pane.js:784
TypeError: Cannot read property 'type' of undefined
at preprocessAST (/Users/tmarrs/.atom/packages/tidy-markdown/node_modules/tidy-markdown/lib/index.coffee:102:18)
at preprocessAST (/Users/tmarrs/.atom/packages/tidy-markdown/node_modules/tidy-markdown/lib/index.coffee:114:7)
at module.exports (/Users/tmarrs/.atom/packages/tidy-markdown/node_modules/tidy-markdown/lib/index.coffee:221:9)
at TidyMarkdown.run (/Users/tmarrs/.atom/packages/tidy-markdown/lib/tidy-markdown.coffee:36:17)
at /Users/tmarrs/.atom/packages/tidy-markdown/lib/tidy-markdown.coffee:23:12
at History.module.exports.History.transact (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/history.js:115:18)
at TextBuffer.module.exports.TextBuffer.transact (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:687:27)
at /Users/tmarrs/.atom/packages/tidy-markdown/lib/tidy-markdown.coffee:21:14
at TextBuffer.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/emissary/lib/emitter.js:118:15)
at TextBuffer.module.exports.TextBuffer.saveAs (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:968:12)
at TextBuffer.module.exports.TextBuffer.save (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:958:19)
at TextEditor.module.exports.TextEditor.save (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:621:26)
at Pane.module.exports.Pane.saveItem (/Applications/Atom.app/Contents/Resources/app/src/pane.js:542:18)
at Pane.module.exports.Pane.saveActiveItem (/Applications/Atom.app/Contents/Resources/app/src/pane.js:525:19)
at Workspace.module.exports.Workspace.saveActivePaneItem (/Applications/Atom.app/Contents/Resources/app/src/workspace.js:689:35)
at atom-workspace.atom.commands.add.core:save (/Applications/Atom.app/Contents/Resources/app/src/workspace-element.js:295:30)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:246:29)
at /Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:61
at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:558:16)
at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:396:22)
at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:182:20)
12x -9:41.6 core:undo (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
-9:17.9 core:save (atom-text-editor.editor)
-8:52.7 markdown-preview:toggle (atom-text-editor.editor)
7x -8:15.6 core:save (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
-5:51.2 core:confirm (atom-text-editor.editor.mini)
-1:38.3 core:copy (atom-text-editor.editor.is-focused)
-1:35.3 core:paste (atom-text-editor.editor.is-focused)
-1:26.9 core:backspace (atom-text-editor.editor.is-focused)
-1:09.4 core:move-left (atom-text-editor.editor.is-focused)
-1:08.3 core:paste (atom-text-editor.editor.is-focused)
6x -1:07.1 core:backspace (atom-text-editor.editor.is-focused)
2x -0:51.8 core:paste (atom-text-editor.editor.is-focused)
-0:02.6 core:save (atom-text-editor.editor.is-focused)
{
"core": {
"disabledPackages": [
"language-ruby-on-rails",
"minimap",
"wrap-guide"
],
"themes": [
"atom-dark-ui",
"monokai"
]
}
}
# User
angularjs, v0.2.0
angularjs-styleguide-snippets, v0.5.0
asciidoc-preview, v0.4.3
atom-beautify, v0.23.0
atom-lint, v0.20.1
atom-runner, v2.3.0
autoclose-html, v0.15.0
autocomplete-html, v0.5.0
coffee-lint, v0.7.3
color-picker, v1.5.0
esformatter, v1.4.0
eslint, v0.15.0
git-projects, v1.11.0
js-refactor, v0.3.0
jsformat, v0.7.18
jsonlint, v1.0.2
language-asciidoc, v0.11.1
language-javascript-semantic, v0.1.0
linter, v0.12.0
linter-csslint, v0.0.11
linter-eslint, v0.5.0
linter-htmlhint, v0.0.8
linter-javac, v0.1.3
linter-rubocop, v0.2.2
linter-tidy, v1.0.0
markdown-format, v2.5.0
markdown-table-formatter, v2.5.2
mocha, v0.0.5
monokai, v0.12.0
open-last-project, v0.3.5
pretty-json, v0.3.2
project-manager, v1.15.5
refactor, v0.4.1
regex-railroad-diagram, v0.7.1
ruby-block, v0.3.3
ruby-block-converter, v3.3.0
script, v2.18.0
slash-closer, v0.7.1
tidy-markdown, v0.1.1
# Dev
No dev packages
[Enter steps to reproduce below:]
Atom Version: 1.3.2
System: Mac OS X 10.11.2
Thrown From: tidy-markdown package, v1.0.0
Uncaught TypeError: Cannot read property 'getGrammar' of undefined
At /Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:829
TypeError: Cannot read property 'getGrammar' of undefined
at Object.module.exports.run (/Users/ztw994/.atom/packages/tidy-markdown/lib/index.coffee:46:14)
at /Users/ztw994/.atom/packages/tidy-markdown/lib/index.coffee:30:12
at TextBuffer.module.exports.TextBuffer.transact (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:798:18)
at /Users/ztw994/.atom/packages/tidy-markdown/lib/index.coffee:28:14
at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:86:11)
at TextBuffer.module.exports.TextBuffer.saveAs (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:1038:20)
at TextBuffer.module.exports.TextBuffer.save (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:1030:19)
at TextEditor.module.exports.TextEditor.save (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:588:26)
at Pane.module.exports.Pane.saveItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:534:18)
at Object.module.exports.autosavePaneItem (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/autosave/lib/autosave.js:64:21)
at /Applications/Atom.app/Contents/Resources/app.asar/node_modules/autosave/lib/autosave.js:29:26
at atom-pane.PaneElement.activeItemChanged (/Applications/Atom.app/Contents/Resources/app.asar/src/pane-element.js:152:25)
at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:86:11)
at Pane.module.exports.Pane.setActiveItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:248:22)
at Pane.module.exports.Pane.activateItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:316:21)
at atom-tabs.TabBarView.onMouseDown (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/tabs/lib/tab-bar-view.js:670:19)
2x -0:20 core:backspace (atom-text-editor.editor.is-focused)
-0:16.5.0 core:save (atom-text-editor.editor.is-focused)
2x -0:03.8.0 core:undo (atom-text-editor.editor.is-focused)
{
"core": {
"disabledPackages": [
"language-gfm",
"language-gfm",
"language-gfm",
"markdown-preview-plus",
"language-gfm",
"language-gfm",
"language-gfm",
"language-gfm",
"language-gfm",
"language-gfm",
"language-gfm",
"language-gfm",
"language-gfm",
"language-gfm",
"language-gfm"
],
"openEmptyEditorOnStart": false
}
}
# User
language-markdown, v0.7.1
markdown-scroll-sync, v2.0.3
tidy-markdown, v1.0.0
# Dev
No dev packages
[Enter steps to reproduce below:]
> Some Text
<!-- Spacer -->
> Some Text I don't in the same section as above
It should render as:
> Some Text
<!-- Spacer -->
> Some Text I don't in the same section as above
Atom Version: 1.7.3
System: Mac OS X 10.11.4
Thrown From: tidy-markdown package, v3.0.0
Uncaught Error: cannot detect nodeType
At /Users/work/.atom/packages/tidy-markdown/node_modules/tidy-markdown/lib/utils.coffee:46
Error: cannot detect nodeType
at nodeType (/Users/work/.atom/packages/tidy-markdown/node_modules/tidy-markdown/lib/utils.coffee:46:15)
at bfsOrder (/Users/work/.atom/packages/tidy-markdown/node_modules/tidy-markdown/lib/index.coffee:84:10)
at module.exports (/Users/work/.atom/packages/tidy-markdown/node_modules/tidy-markdown/lib/index.coffee:260:11)
at TidyMarkdown.run (/Users/work/.atom/packages/tidy-markdown/lib/index.coffee:40:17)
at atom-workspace.TidyMarkdown.subscriptions.add.atom.commands.add.tidy-markdown:run (/Users/work/.atom/packages/tidy-markdown/lib/index.coffee:11:32)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260:29)
at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61)
at CommandRegistry.module.exports.CommandRegistry.dispatch (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:160:19)
at AtomEnvironment.module.exports.AtomEnvironment.dispatchApplicationMenuCommand (/Applications/Atom.app/Contents/Resources/app.asar/src/atom-environment.js:1100:28)
at EventEmitter.outerCallback (/Applications/Atom.app/Contents/Resources/app.asar/src/application-delegate.js:314:25)
at emitTwo (events.js:87:13)
at EventEmitter.emit (events.js:172:7)
-2:21.9.0 tidy-markdown:run (atom-text-editor.editor.is-focused)
-2:17.9.0 core:move-right (atom-text-editor.editor.is-focused)
-2:17.5.0 core:select-down (atom-text-editor.editor.is-focused)
-2:17.1.0 core:backspace (atom-text-editor.editor.is-focused)
-2:16.4.0 editor:newline (atom-text-editor.editor.is-focused)
-2:15.9.0 core:move-left (atom-text-editor.editor.is-focused)
18x -2:14.3.0 core:backspace (atom-text-editor.editor.is-focused)
-1:48.8.0 autocomplete-plus:cancel (atom-text-editor.editor.is-focused.autocomplete-active)
-1:46.5.0 tidy-markdown:run (atom-text-editor.editor.is-focused)
-1:40.3.0 core:select-all (atom-text-editor.editor.is-focused)
-1:39.9.0 core:copy (atom-text-editor.editor.is-focused)
-0:10.7.0 application:new-file (atom-text-editor.editor.is-focused)
-0:09.6.0 core:paste (atom-text-editor.editor.is-focused)
-0:05.7.0 grammar-selector:show (atom-text-editor.editor)
-0:04.0 core:confirm (atom-text-editor.editor.mini.is-focused)
-0:01.1.0 tidy-markdown:run (a.inline-block)
{
"core": {
"themes": [
"atom-dark-ui",
"atom-dark-syntax"
]
}
}
# User
linter-markdown, v1.5.0
tabular, v0.1.0
tidy-markdown, v3.0.0
# Dev
No dev packages
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.