zhuochun / md-writer Goto Github PK
View Code? Open in Web Editor NEW✒️ Make Atom a better Markdown/AsciiDoc editor for writers and bloggers
Home Page: https://atom.io/packages/markdown-writer
License: MIT License
✒️ Make Atom a better Markdown/AsciiDoc editor for writers and bloggers
Home Page: https://atom.io/packages/markdown-writer
License: MIT License
Currently, user must select the range of text needed to apply style changes.
Improve it to support select word by default and toggle it using marker.
keybinding of Ordered List is same as heading 5
From 1.6.0
, all text/line styles are customizable, probably can look forward to support these filetypes in styles.
Add them as a kind of engine in lib/config.coffee
.
Received:
[Enter steps to reproduce below:]
Atom Version: 0.190.0
System: Mac OS X 10.10.3
Thrown From: markdown-writer package, v1.1.1
Uncaught TypeError: undefined is not a function
At /Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/history.js:128
TypeError: undefined is not a function
at /Users/stevencombs/.atom/packages/markdown-writer/lib/insert-link-view.coffee:101:42
at Array.filter (native)
at InsertLinkView.module.exports.InsertLinkView.updateSearch (/Users/stevencombs/.atom/packages/markdown-writer/lib/insert-link-view.coffee:100:21)
at /Users/stevencombs/.atom/packages/markdown-writer/lib/insert-link-view.coffee:38:8
at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:82:11)
at /Applications/Atom.app/Contents/Resources/app/src/text-editor.js:220:32
at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:82:11)
at DisplayBuffer.module.exports.DisplayBuffer.emitDidChange (/Applications/Atom.app/Contents/Resources/app/src/display-buffer.js:297:20)
at DisplayBuffer.module.exports.DisplayBuffer.handleBufferMarkersUpdated (/Applications/Atom.app/Contents/Resources/app/src/display-buffer.js:1594:21)
at /Applications/Atom.app/Contents/Resources/app/src/display-buffer.js:5:61
at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:82:11)
at TextBuffer.module.exports.TextBuffer.applyPatch (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:557:20)
at TextBuffer.module.exports.TextBuffer.setTextInRange (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:461:12)
at Selection.module.exports.Selection.insertText (/Applications/Atom.app/Contents/Resources/app/src/selection.js:452:43)
at /Applications/Atom.app/Contents/Resources/app/src/text-editor.js:718:31
at /Applications/Atom.app/Contents/Resources/app/src/text-editor.js:760:29
at History.module.exports.History.transact (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/history.js:119:18)
at TextBuffer.module.exports.TextBuffer.transact (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:647:27)
at TextEditor.module.exports.TextEditor.transact (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:1109:26)
at /Applications/Atom.app/Contents/Resources/app/src/text-editor.js:754:24
at TextEditor.module.exports.TextEditor.mergeSelections (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:1931:18)
at TextEditor.module.exports.TextEditor.mergeIntersectingSelections (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:1901:35)
at TextEditor.module.exports.TextEditor.mutateSelectedText (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:752:19)
at TextEditor.module.exports.TextEditor.insertText (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:715:21)
at /Applications/Atom.app/Contents/Resources/app/src/text-editor-component.js:438:31
at History.module.exports.History.transact (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/history.js:119:18)
at TextBuffer.module.exports.TextBuffer.transact (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:647:27)
at TextEditor.module.exports.TextEditor.transact (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:1109:26)
at TextEditorComponent.module.exports.TextEditorComponent.onTextInput (/Applications/Atom.app/Contents/Resources/app/src/text-editor-component.js:436:35)
at HTMLDivElement.<anonymous> (/Applications/Atom.app/Contents/Resources/app/src/text-editor-component.js:3:61)
-8:32.1 markdown-writer:manage-post-tags (div.settings-view.pane-item)
-7:43.5 markdown-writer:insert-new-line (atom-text-editor.editor)
4x -7:40.4 core:select-left (atom-text-editor.editor)
-7:37.6 markdown-writer:toggle-keystroke-text (atom-text-editor.editor)
-7:34.9 core:undo (atom-text-editor.editor)
-7:29.2 markdown-writer:insert-link (atom-text-editor.editor)
9x -7:19.4 core:backspace (atom-text-editor.editor.mini)
-6:45.6 core:confirm (atom-text-editor.editor.mini)
-5:36.6 core:undo (atom-text-editor.editor)
-5:34.5 markdown-writer:insert-link (atom-text-editor.editor)
-5:30.2 core:confirm (atom-text-editor.editor.mini)
-5:27.7 core:undo (atom-text-editor.editor)
-5:25.8 markdown-writer:insert-link (atom-text-editor.editor)
-5:15.8 core:cancel (atom-text-editor.editor.mini)
-4:08.0 symbols-view:toggle-file-symbols (div.settings-view.pane-item)
-0:15.3 markdown-writer:insert-link (atom-text-editor.editor)
{
"core": {},
"markdown-writer": {
"siteDraftsDir": "_drafts",
"siteImagesDir": "images",
"siteLocalDir": "/Users/stevencombs/Dropbox/stevencombs.github.io",
"sitePostsDir": "_posts",
"siteUrl": "http://www.stevencombs.com",
"fileExtension": ".md",
"siteEngine": "jekyll",
"urlForCategories": "http://stevencombs.github.io/categories.json",
"urlForTags": "http://stevencombs.github.io/tags.json",
"urlForPosts": "http://stevencombs.github.io/posts.json"
}
}
# User
file-icons, v1.5.4
markdown-writer, v1.1.1
# Dev
No dev packages
The use of Alt-1, Alt-2, Alt-3, etc. to provide easy access to Markdown heading levels overrides the standard UK keyboard usage. Alt-2 is used for access to the Euro symbol, while even more importantly, the # symbol itself is mapped to Alt-3.
I don't know if cmd-h
(or the letter h
in general) is somehow a convention for strikethrough, but I'd like to keep the cmd-h
shortcut to "Hide Application". I've tried to customize my keymap to unset cmd-h
, but I'm not sure how to do it correctly.
Support project/blog specific settings.
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:55:11)
Object.registerCommand (/Users/shgbit/.atom/packages/markdown-writer/lib/main.coffee:74:9)
[Enter steps to reproduce below:]
Heading 1 | Heading 2 |
---|---|
data1 | data2 |
data3 | data4 |
Invoke format table from package commands
Atom Version: 0.179.0
System: linux 3.13.0-45-generic
Thrown From: markdown-writer package, v0.10.2
Uncaught TypeError: undefined is not a function
At /home/sayth/.atom/packages/markdown-writer/lib/commands.coffee:129
TypeError: undefined is not a function
at Commands._findTableRange (/home/sayth/.atom/packages/markdown-writer/lib/commands.coffee:129:18)
at Commands.formatTable (/home/sayth/.atom/packages/markdown-writer/lib/commands.coffee:122:14)
at Commands.trigger (/home/sayth/.atom/packages/markdown-writer/lib/commands.coffee:16:5)
at atom-text-editor.<anonymous> (/home/sayth/.atom/packages/markdown-writer/lib/main.coffee:101:23)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/opt/atom/resources/app/src/command-registry.js:243:29)
at CommandRegistry.handleCommandEvent (/opt/atom/resources/app/src/command-registry.js:3:61)
at CommandRegistry.module.exports.CommandRegistry.dispatch (/opt/atom/resources/app/src/command-registry.js:156:19)
at EventEmitter.<anonymous> (/opt/atom/resources/app/src/window-event-handler.js:65:30)
at EventEmitter.emit (events.js:116:17)
-6:08.0 core:move-up (atom-text-editor.editor)
2x -6:07.7 core:move-right (atom-text-editor.editor)
-5:35.0 emmet:insert-formatted-line-break-only (atom-text-editor.editor)
-5:35.0 markdown-writer:insert-new-line (atom-text-editor.editor)
-5:26.9 markdown-writer:toggle-codeblock-text (atom-text-editor.editor)
4x -5:18.7 core:backspace (atom-text-editor.editor)
-5:14.1 core:move-down (atom-text-editor.editor)
-4:57.0 emmet:insert-formatted-line-break-only (atom-text-editor.editor)
-4:57.0 markdown-writer:insert-new-line (atom-text-editor.editor)
3x -4:49.9 core:backspace (atom-text-editor.editor)
-4:46.2 emmet:insert-formatted-line-break-only (atom-text-editor.editor)
-4:46.2 markdown-writer:insert-new-line (atom-text-editor.editor)
-4:43.3 core:move-down (atom-text-editor.editor)
-4:42.0 emmet:insert-formatted-line-break-only (atom-text-editor.editor)
-4:42.0 markdown-writer:insert-new-line (atom-text-editor.editor)
-0:10.6 markdown-writer:format-table (atom-text-editor.editor)
{
"core": {
"disabledPackages": [
"language-SCSS",
"symbols-view"
]
}
}
# User
atom-beautify, v0.21.3
atom-ctags, v2.6.0
atom-language-xquery, v0.2.0
atom-ternjs, v0.4.18
atom-zeal, v0.1.0
atomatigit, v1.2.3
autoclose-html, v0.15.0
autocomplete-paths, v1.0.2
autocomplete-plus, v2.1.6
autocomplete-snippets, v1.0.1
color-picker, v1.4.4
compare-files, v0.4.1
compass, v0.7.5
css-color-underline, v1.0.1
css-snippets, v0.5.0
emmet, v2.3.3
inline-autocomplete, v0.3.3
linter, v0.11.1
linter-csslint, v0.0.11
linter-erb, v0.1.0
linter-htmlhint, v0.0.8
linter-jscs, v1.4.9
linter-rubocop, v0.2.1
linter-scss-lint, v0.0.11
markdown-format, v2.5.0
markdown-writer, v0.10.2
minimap, v4.1.4
prefixr, v0.2.0
project-palette-finder, v2.4.15
restore-windows, v0.3.2
script, v2.16.0
webbox-color, v0.5.4
# Dev
No dev packages
I receive the following warning for md-writer on Atom (0.174.0) on Arch Linux:
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 (/home/USERAtom/share/atom/resources/app/src/atom.js:55:11)
Object.registerHelper (/home/USER/packages/markdown-writer/lib/main.coffee:83:9)
Support link reference insertion position at the end of article. (Currently, references are inserted at the end of the paragraph).
Tree view: Add Root Folder
(for the location where Jekyll’s files are located)Markdown Writer: New Post
I have basic config file for the project (based on the example from the md-writer documentation).
Atom Version: 0.189.0
System: Mac OS X 10.8.5
Thrown From: markdown-writer package, v1.1.1
Failed to activate the markdown-writer package
At Syntax error on line 1, column 1: One top level value expected
SyntaxError: Syntax error on line 1, column 1: One top level value expected
at nodeTransforms.Block (/Applications/Atom.app/Contents/Resources/app/node_modules/season/node_modules/cson-parser/lib/parse.js:74:15)
at transformNode (/Applications/Atom.app/Contents/Resources/app/node_modules/season/node_modules/cson-parser/lib/parse.js:197:12)
at Object.parse (/Applications/Atom.app/Contents/Resources/app/node_modules/season/node_modules/cson-parser/lib/parse.js:203:12)
at parseObject (/Applications/Atom.app/Contents/Resources/app/node_modules/season/lib/cson.js:42:23)
at parseContentsSync (/Applications/Atom.app/Contents/Resources/app/node_modules/season/lib/cson.js:67:14)
at Object.module.exports.readFileSync (/Applications/Atom.app/Contents/Resources/app/node_modules/season/lib/cson.js:154:14)
at Configuration._loadProjectConfig (/Users/d2s/.atom/packages/markdown-writer/lib/config.coffee:127:19)
at Configuration.getProject (/Users/d2s/.atom/packages/markdown-writer/lib/config.coffee:121:6)
at Configuration.getEngine (/Users/d2s/.atom/packages/markdown-writer/lib/config.coffee:105:15)
at Configuration.getCurrentDefault (/Users/d2s/.atom/packages/markdown-writer/lib/config.coffee:111:6)
at Object.<anonymous> (/Users/d2s/.atom/packages/markdown-writer/lib/main.coffee:38:21)
at Object.<anonymous> (/Users/d2s/.atom/packages/markdown-writer/lib/main.coffee:1:1)
at Module._compile (module.js:452: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:347:32)
at Function.Module._load (module.js:302:12)
at Module.require (module.js:357:17)
at require (module.js:376:17)
at Package.module.exports.Package.requireMainModule (/Applications/Atom.app/Contents/Resources/app/src/package.js:678:34)
at Package.module.exports.Package.activateConfig (/Applications/Atom.app/Contents/Resources/app/src/package.js:257:12)
at Package.module.exports.Package.activateNow (/Applications/Atom.app/Contents/Resources/app/src/package.js:236:14)
at /Applications/Atom.app/Contents/Resources/app/src/package.js:741:25
at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:82:11)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:223:20)
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:552:16)
at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:392:22)
at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:180:20)
-0:28.1 core:close (div.release-notes.padded.pane-item.native-key-bindings)
-0:27.1 command-palette:toggle (atom-text-editor.editor.is-focused)
-0:24.2 core:confirm (atom-text-editor.editor.mini)
-0:24.2 tree-view:add-root-folder (atom-text-editor.editor.is-focused)
-0:20.9 command-palette:toggle (atom-text-editor.editor.is-focused)
-0:13.0 core:confirm (atom-text-editor.editor.mini)
-0:12.5 core:save (atom-text-editor.editor.is-focused)
-0:06.0 command-palette:toggle (atom-text-editor.editor.is-focused)
-0:03.9 core:select-all (atom-text-editor.editor.mini)
-0:01.7 core:confirm (atom-text-editor.editor.mini)
-0:01.4 markdown-writer:new-post (atom-text-editor.editor.is-focused)
{
"core": {
"disabledPackages": [
"linter-clojure",
"language-csharp",
"metrics"
],
"projectHome": "/Users/d2s/Sites"
}
}
# User
angularjs, v0.2.0
atom-beautify, v0.23.1
color-picker, v1.5.0
git-log, v0.3.0
language-clojure, v0.13.0
linter, v0.12.0
linter-clang, v2.25.1
linter-erb, v0.1.0
linter-eslint, v0.5.0
linter-htmlhint, v0.0.12
linter-javac, v0.1.3
linter-jscs, v1.9.0
linter-pep8, v0.1.0
linter-php, v0.0.12
linter-ruby, v0.1.4
linter-scss-lint, v0.0.14
linter-xmllint, v0.0.5
markdown-writer, v1.1.1
minimap, v4.7.5
minimap-color-highlight, v4.1.0
minimap-find-and-replace, v4.2.0
minimap-git-diff, v4.1.2
minimap-highlight-selected, v4.2.0
minimap-selection, v4.2.0
# Dev
No dev packages
Command to update/unify order list numbers based on indentation.
E.g.
1. a -> 1. a
2. b -> 2. b
2. c -> 3. c
3. d -> 4. d
It would be fantastic to add the option to decrease the indent on a empty list item if enter is pressed. Basically, the same functionality as CMD+[.
Hi, It seems that md-writer couldn't handle the tag like C++
.
Steps to reproduce:
Uncaught SyntaxError: Invalid regular expression: /C++/: Nothing to repeat
Atom Version: 0.177.0
System: Mac OS X 10.10.2
Thrown From: markdown-writer package, v0.10.0
Uncaught SyntaxError: Invalid regular expression: /C++/: Nothing to repeat
At /Users/azu/.atom/packages/markdown-writer/lib/manage-post-tags-view.coffee:78
SyntaxError: Invalid regular expression: /C++/: Nothing to repeat
at new RegExp (native)
at /Users/azu/.atom/packages/markdown-writer/lib/manage-post-tags-view.coffee:78:22
at Array.forEach (native)
at ManagePostTagsView.module.exports.ManagePostTagsView.rankTags (/Users/azu/.atom/packages/markdown-writer/lib/manage-post-tags-view.coffee:77:10)
at /Users/azu/.atom/packages/markdown-writer/lib/manage-post-tags-view.coffee:69:8
at Request._callback (/Users/azu/.atom/packages/markdown-writer/lib/utils.coffee:10:7)
at Request.self.callback (/Applications/Atom.app/Contents/Resources/app/node_modules/less-cache/node_modules/less/node_modules/request/request.js:123:22)
at Request.emit (events.js:119:17)
at Request.<anonymous> (/Applications/Atom.app/Contents/Resources/app/node_modules/less-cache/node_modules/less/node_modules/request/request.js:1047:14)
at Request.emit (events.js:138:20)
at Gunzip.<anonymous> (/Applications/Atom.app/Contents/Resources/app/node_modules/less-cache/node_modules/less/node_modules/request/request.js:998:12)
at Gunzip.emit (events.js:138:20)
at _stream_readable.js:909:16
at process._tickCallback (node.js:364:11)
-0:51.6 core:select-all (atom-text-editor.editor.mini)
-0:50.6 core:confirm (atom-text-editor.editor.mini)
-0:50.6 markdown-preview:toggle (atom-text-editor.editor)
-0:47.0 command-palette:toggle (div.markdown-preview.native-key-bindings)
-0:44.9 core:move-down (atom-text-editor.editor.mini)
-0:44.7 core:confirm (atom-text-editor.editor.mini)
-0:44.6 scroll-sync:toggle (div.markdown-preview.native-key-bindings)
-0:42.5 command-palette:toggle (div.markdown-preview.native-key-bindings)
-0:40.5 core:confirm (atom-text-editor.editor.mini)
-0:40.5 scroll-sync:toggle (div.markdown-preview.native-key-bindings)
2x -0:09.6 core:close (div.markdown-preview.native-key-bindings)
-0:05.9 command-palette:toggle (atom-text-editor.editor)
-0:03.5 core:select-all (atom-text-editor.editor.mini)
-0:01.5 core:move-down (atom-text-editor.editor.mini)
-0:01.2 core:confirm (atom-text-editor.editor.mini)
-0:01.2 markdown-writer:manage-post-tags (atom-text-editor.editor)
{
"core": {
"ignoredNames": [
".git",
".svn",
".DS_Store"
],
"excludeVcsIgnoredPaths": false,
"disabledPackages": [
"markdown-helpers",
"markdown-stream",
"markdown-format",
"jekyll-new-post"
],
"themes": [
"atom-mac-theme",
"Writer"
]
},
"markdown-writer": {
"fileExtension": ".md",
"siteLocalDir": "/Users/azu/.ghq/github.com/efcl/efcl.github.io/",
"urlForCategories": "http://efcl.info/assets/categories.json",
"urlForPosts": "http://efcl.info/assets/posts.json",
"urlForTags": "http://efcl.info/assets/tags.json",
"sitePostsDir": "/Users/azu/.ghq/github.com/efcl/efcl.github.io/_post/{year}",
"siteUrl": "http://efcl.info/",
"siteEngine": "jekyll"
}
}
# User
Writer, v0.1.0
asciidoc-preview, v0.4.2
atom-mac-theme, v0.4.2
autocomplete-emojis, v1.0.0
autocomplete-paths, v1.0.2
file-icons, v1.4.8
git-plus, v4.4.1
github-issues, v0.3.0
japanese-wrap, v0.2.3
language-asciidoc, v0.11.1
linter-shellcheck, v0.0.6
markdown-writer, v0.10.0
preview-plus, v1.1.16
recent-files, v0.3.0
scroll-sync, v0.1.0
# Dev
No dev packages
E.g. when change width, height is changed accordingly to keep the image's width:height ratio.
Great package, but it seems the package doesn't work on windows.
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:55:11)
Object.registerHelper (/Users/shgbit/.atom/packages/markdown-writer/lib/main.coffee:83:9)
Default settings are not showing up in the package setting page. Fix this.
Previously, pressing enter
would result in a new entry in an ordered/unordered list being created. In the case of ordered, it would increment the number by one
This is no longer the case, pressing enter
inserts a double-line-break
Trying to add a local image:
![](./Screen Shot 2014-08-18 at 08.01.01.png)
Results in a broken image when previewing.
I got similar errors when update both tags and categories
Here is the front matter in my blog
layout: post
title: Page renders improperly in IE before developer tool has opened
comments: true
categories: javascript
tags:
- javascript
- IE
- developer tool
- pitfall
- console
- undefined
- polyfill
date: 2014-08-01 08:00:00
---
new post permission denied '/github'
Would be great to have some way to display quick tips or just the basics of markdown as one writes the text and forgets how to do certain manipulation; this way instead of googling it can be built-in.
Hey man,
Thanks for making atom.io a better markdown editor :) I've been trying use the "insert image" feature to insert an image - it works as described for a remote image, but I can't see how to optionally copy it to a local folder. Could you advise?
Thanks :)
😄
[Enter steps to reproduce below:]
Atom Version: 1.0.0
System: Mac OS X 10.10.3
Thrown From: markdown-writer package, v1.4.0
Uncaught TypeError: Cannot read property 'start' of undefined
At /Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/range.js:35
TypeError: Cannot read property 'start' of undefined
at Function.module.exports.Range.fromObject (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/range.js:35:31)
at TextBuffer.module.exports.TextBuffer.getTextInRange (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:373:36)
at TextEditor.module.exports.TextEditor.getTextInRange (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:686:26)
at InsertLinkView.module.exports.InsertLinkView.setFieldsFromSelection (/Users/phocke/.atom/packages/markdown-writer/lib/insert-link-view.coffee:80:25)
at /Users/phocke/.atom/packages/markdown-writer/lib/insert-link-view.coffee:65:8
at /Users/phocke/.atom/packages/markdown-writer/lib/insert-link-view.coffee:197:47
at /Users/phocke/.atom/packages/markdown-writer/lib/insert-link-view.coffee:202:42
at FSReqWrap.cb [as oncomplete] (fs.js:209:19)
-5:57.6.0 core:save (atom-text-editor.editor.is-focused.autocomplete-active)
2x -5:56.3.0 core:move-down (atom-text-editor.editor.is-focused)
-5:05.8.0 core:move-left (atom-text-editor.editor.is-focused)
2x -5:05.4.0 core:move-down (atom-text-editor.editor.is-focused)
5x -0:53.1.0 core:backspace (atom-text-editor.editor.is-focused)
2x -0:50.1.0 core:move-right (atom-text-editor.editor.is-focused)
3x -0:48.3.0 core:move-left (atom-text-editor.editor.is-focused)
3x -0:45.2.0 core:move-right (atom-text-editor.editor.is-focused.autocomplete-active)
12x -0:44.5.0 core:backspace (atom-text-editor.editor.is-focused)
-0:38.2.0 command-palette:toggle (atom-text-editor.editor.is-focused)
-0:35.1.0 core:move-down (atom-text-editor.editor.mini.is-focused)
-0:33.8.0 core:confirm (atom-text-editor.editor.mini.is-focused)
-0:33.8.0 markdown-writer:insert-link (atom-text-editor.editor)
-0:27.6.0 core:paste (atom-text-editor.editor.mini.is-focused)
-0:14.6.0 core:confirm (atom-text-editor.editor.mini.is-focused)
-0:01.7.0 markdown-writer:insert-link (atom-text-editor.editor.is-focused)
{
"core": {
"themes": [
"kobalt-ui",
"kobalt"
],
"ignoredNames": [
".git",
".svn",
".DS_Store",
"*.log",
"*.csv"
],
"excludeVcsIgnoredPaths": false
}
}
# User
Sublime-Style-Column-Selection, v1.3.0
advanced-new-file, v0.4.3
copy-filename, v1.0.1
file-icons, v1.5.8
git-plus, v5.2.2
kobalt, v0.5.0
kobalt-ui, v0.4.0
language-log, v0.4.0
markdown-writer, v1.4.0
merge-conflicts, v1.3.2
minimap, v4.10.0
minimap-git-diff, v4.1.3
pigments, v0.8.1
# Dev
No dev packages
While I can modify config.coffee
to change the character used to denote italics, I would much prefer not to have to do this with every update; could this be a user-configurable choice?
Thanks for putting this package together; it's exactly what I was looking for.
I am copy this file to ./source directory and generate content.
OctoPress rendering this scripts and replace "[TAG]"
to “[TAG]”
categories.json file fragment :
{
“categories”: [
“Unix”,
“Windows”
]
}
How to solve this problem? 👀
If I have an item like:
- item
and I position the cursor at the start of the line,
then hit enter
this results in:
- - item
Likewise:
- [ ] an item
hitting enter results in:
- [ ] - [ ] an item
Related is that if the cursor is somewhere in the middle of the line:
- item that is |getting too long
and I hit enter, then I get:
- item that is
- getting too long
whereas I would personally prefer:
- item that is
getting too long
which looks like
(But in markdown preview I'm seeing "getting too long" on the next line and indented which looks nice. on github issues here they are merging it into the first line)
But then this:
- [ ] item
more text here
Is rendering the second line as another list item (that is markdown preview doing it. nothing to do with md-writer)
So I think the auto-prefixing (which is a wonderful feature) should only happen if the cursor is at the end of the line.
Or it should detect if the line already starts with -
or - [ ]
and not prefix if its already there.
I'm not sure which approach is best to solve it.
Thanks for the package ! Especially the todo has been very helpful.
When I press alt-[1-5]
I expect something like this: |@#¢∞
, instead I get #[1-5]
. If it were only in markdown files it'd be okay I guess, but this keybinding seems to work on every file.
I don't know how Atom keybindings work, is it possible to keep them only for markdown files or replace those shortcuts? I'm using my keyboard with the Spanish layout, btw.
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:53:11)
Object.registerCommand (/Users/Yohann/.atom/packages/markdown-writer/lib/main.coffee:74:9)
md-writer/node_modules/request/lib/debug.js:5
. Related to request
library used.
If you're going to override core Atom behavior, maybe make it opt-in? It looks like Cmd-K and Cmd-Shift-O have this problem too.
Also, it seems like Cmd-H should hide the app...? That's an OSX thing though, not an Atom thing.
Add a section on plugin Installment in README.
After the first insert image, next insert is likely be in the same directory. Remember the location and reuse it.
Hi,
While editing a ordered or unordered list, if i press TAB directly after "* " or "2. ", should indent the list.
Not adding the TAB
Thx.
In my working Jekyll blog directory, I tried to use the md-writer plugin to add a new post, but I got the error:
EACCES: permission denied, mkdir '/github'
I'm not sure why it's trying to create a '/github' folder, nor where it's trying to create it. I'm starting atom as my user, and my user has read/write permissions in my Jekyll directory.
I really like md-writer, which has lots of features I love, but there is one feature which I really want to have but is missing.
Headers start with # have perfect color highlight, however, headers marked with ====== or ------ don't. I personally prefer using equal or dash for level 1 header, since it is much clearer than # in the text form. Could you add this to the plugin?
Presently, if the cursor is placed in the middle of the word and one of the formatting commands is invoked, one will merely receive the appropriate characters on each side of the cursor. With the TextMate Markdown package (see https://github.com/textmate/markdown.tmbundle/tree/master/Commands), this action will result in the formatting being applied to the entirety of the current word (minus any punctuation), which is useful; would it be possible to implement this?
每次更新后 Ordered List 的快捷键 都是 ctrl option 5
It'd be nice if the image insert dialog can have an option for "copy the file into current directory as... [filename]"
This would be very useful for writing markdown that requires inserting lots of screenshots, or for gitbook.
Hi :)
first of all thanks for the plugin. You done a ton of work!
Right now new link is created in format (Link Text)[link address]. Were you think about implementing it by using (link text)[1]
[1]: link address?
I am asking because I am writing blog post in Atom which I paste to Wordpress. I have plugin for markdown to html but it seems it doesn't support first link form.
Currently, link reference inserted uses a generated UUID as id.
It can be improved to use the text as id, which is more user-friendly. However, it requires duplication detection and prevention.
Since the default value of new post file name
has been changed when setting hexo
as site engine
, the default value in atom settings becomes unusable.
I don't think changing any default value in atom settings when site engine
has been changed is a good idea.
Hi, I just created a hexo generator to generate the json files that used by this plug in.
Please refers to hexo-generator-atom-markdown-writer-meta
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.