sublimetext-markdown / markdownediting Goto Github PK
View Code? Open in Web Editor NEWPowerful Markdown package for Sublime Text with better syntax understanding and good color schemes.
License: MIT License
Powerful Markdown package for Sublime Text with better syntax understanding and good color schemes.
License: MIT License
Currently: I first need to select a word in order to make it bold/italic.
Suggestion: When the cursor is placed in the word, it selects the word (the code should be somewhere in the super+d
command I guess) and then makes it bold/italic.
Bonus: If the word or selection is already bold/italic, pressing super+b
/super+i
should make it normal text again.
Do you mean
<key>beginCaptures</key>
instead of
<key>captures</key>
on https://github.com/ttscoff/MarkdownEditing/blob/master/Markdown.tmLanguage#L545 ?
Hi Brett,
Why do we have to select text in order to apply a heading prefix (e.g., the '#'s & space)?
Why doesn't it just work for the current line, when there's no selection?
This would make applying and changing headings much quicker.
Please add Sublime Text 3 support
If I have first_app I should get first_app, but I get first in bold and app in italic and all the words after it in italic. In fact app** is in light gray as well as the following text.
Byword has the correct display with the *'s in gray and the first_app in bold.
The markdown text I have open in Sublime is for the Home page of https://github.com/perfectionist/sample_project/wiki
I saw that you are also the author of Marked. Are there any plans on a small Sublime Text plugin to use Marked as a preview (the last thing I miss from the good ol' Textmate)?
I mainly ask because I want to throw some many at you because of MarkdownEditing and go ahead and purchase Marked.
Menlo was perhaps the only font that bold actually worked on... Any ideas? Happy to provide a list of fonts if needed.
When I heard about this plugin, my very first step was to search for it in Package Control. I can install it manually, but is there any chance of making this easier for future users?
I'll make some update to the README. Would you like me to put licence, too? Currently I don't know the licence type.
I'd like to suggest some changes to the default settings.
-"wrap_width": 70,
+"wrap_width": 0,
-"draw_centered": true,
+"draw_centered": false,
-"line_padding_top": 5,
+"line_padding_top": 2,
+"line_padding_bottom": 2,
+"line_numbers": false,
+"tab_size": 4,
draw_centered
, wrap_width
I think we should leave it to the user. Because distraction free mode is for that. In the beginning, it should be aligned left (my opinion).
line_padding_top/bottom
Instead of putting it all up, let's share to both directions.
line_numbers
I agree that everbody likes things in different ways. I'd just like to ask for your opinion. (I wish more users share ideas). When editing md, line numbers look bad to me.
tab_size
Just to be sure that it's 4.
Answers will affect the screenshot I'll create for README.
I am using ST3 trying to input Chinese characters, but it's not allowing me to, anything I entered in the IME buffer gets deleted
When I type something that inserts a character - e.g. typing *
becomes **
then type my stuff, pressing *
against doesn't overtype the trailing *
which is really annoying.
Here's a video of this in action:
https://www.youtube.com/watch?v=erH50kkbBh4
Currently there are too many markdown plugins for ST which is trying to define a markdown syntax. All of them has different bugs.
IMHO, all these effort should be canalized to one single ST plugin. So that, everybody who wants to write md in ST would know that famous plugin and install it first.
MarkdownEditing plugin is the best candidate I know about for this purpose. I've used aziz/knockdown@c5fb17b from @aziz for a fairly long time. It's great but has some syntax bugs, too. I've currently decided to stay on MarkdownEditing. MarkdownEditing gives the taste of iAWriter and Byword.
I'm wondering if @aziz would like this idea and merge unique things from knockdown to this plugin (if any). In fact, I'm willing to do some part of that merge. For example I've already borrowed some code that brings color to fenced code blocks. I'll send a PR soon.
Another thing I'd like to discuss is GFM. Do you think we should implement it in the current Markdown.tmLanguage
or should we create a new file like Markdown GFM.tmLanguage
. I want to implement some things for GFM.
Let's discuss.
I really like the MarkdownEditing theme. On my work computer I wish to have it dark themed like the "Sleeplessmind" theme to get it more fitting the dark desktop.
Would be really useful for supporting the GitHub extension "Fanced Code Blocks": http://github.github.com/github-flavored-markdown/
Please make this plugin available for Sublime Text 3
Trying to change extensions and MarkdownEditing is not reflecting any changes.
I've changed both the Package sublime-settings and User sublime-settings to remove txt from extensions, yet txt files continue to show as MarkdownEditing.
There is a shortcut for bold: alt+super+B
There is a shortcut for italics: alt+super+I
But I have not found a short cut for inline code this is my inline code
It would be cool to add one
I'm new to this plugin as well as to Sublime Text and there's one issue I have with both the versions 2 and 3. When I hit space twice at the end of a line, I get this weird highlighting:
What does it do? Can I disable it? I don't have it in code tabs. Here are my MarkdownEditing settings:
"color_scheme": "Packages/Color Scheme - Default/Solarized (Dark).tmTheme",
"line_numbers": false,
"wrap_width": 80,
"highlight_line": false,
"auto_match_enabled": false
Other than that I really want to say thanks for a great plugin because I've been trying to achieve something similar (simultaneous code/prose tabs) in Vim and it was hell.
Right now, this package has its own Markdown and Multimarkdown tmLanguage definitions. Because of that, I disabled the default Markdown package in order to avoid duplications (e.g. Set Syntax command). However, once I do that, the "Goto Symbol" support in sublime will not work for Markdown/Multimarkdown.
The quick fix I did was just to copy the Symbol List - Heading.tmPreferences
file from the default Markdown
package into the MarkdownEditing
folder and wolla, fixed.
Considering every single one of my markdown projects to date just use left prefixed headers, having the header surround (e.g. ## Header ##
) is really darn annoying. Wishing it could be turned off by a setting rather than removing the hotkey directly.
Recently, I upgraded to Sublime Text 3. Some problems happen. I can't use paste_as_link command under ST3. It prints error like this:
Traceback (most recent call last):
File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 445, in is_enabled_
raise ValueError("is_enabled must return a bool", self)
ValueError: ('is_enabled must return a bool', <MarkdownEditing.paste_as_link.PasteAsLinkCommand object at 0x1077ca210>)
Is there any plan to support pandoc enhanced markdown syntax? The major advantage of pandoc is that they support embeded math. I think this is critical because it could be very annoying.
Basically, things between $
are treated as math. For example: $x_1 + x_2 = x_3$
. Underscope and star are quite common in math, but since it is not properly escaped, it produce unwanted italic syntax highlighting in the doc. The minimum solution that I would like to see is one way to treat things inside $
as markdown literal (backquote), and things inside
$$
x^2 + y^2 = z^2
$$
block as markdown literal block. So that they do not intervene with other markdown syntax. If you could point me how to add two rules for this similar to your existing backquote rules, I would be happy to hack locally.
An often use-case (for me) is to make words bold/italic or remove that from the word. So right now, I press ⌘D
(Mac) to select the current word and press ⌘⌥B.
I think it would be beneficial if pressing ⌘⌥B would directly select the current word, apply the markup and remove the selection again.
If |
is the cursor:
exa|mple ==> **exa|mple**
The other way should also work, if the current word has already bold/italic markup, that should be removed.
Would be great for the ability to collapse a heading until the next heading of that level or a higher level.
For instance, if collapsing a h3, it should collapse everything up to another h3, or a h2, or h1.
Would be really useful for long markdown documents.
I receive this error when opening an Markdown file ... eg. test.md
Error loading colour scheme Packages/MarkdownEditing/MarkdownEditor.tmTheme: Error parsing plist xml: Failed to open file In file "Packages/MarkdownEditing/MarkdownEditor.tmTheme"
besides that I really like the plugin ;-)
This is what happens:
Traceback (most recent call last): File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 445, in is_enabled_ raise ValueError("is_enabled must return a bool", self) ValueError: ('is_enabled must return a bool', <MarkdownEditing.footnotes.MagicFootnotesCommand object at 0x1089c5390>)
I like to have my font-size a tad bit smaller and prefer to use a font other than Menlo. I currently customise the Markdown.sublime-settings and MultiMarkdown.sublime-settings files to my heart's content. Understandably though, they get overwritten with each update in the extension.
A user specific settings file would be really awesome (I believe the ST2 convention is also to have this user specific settings page).
I've tried disabling matching header hashes, but it doesn't seem to actually work.
I am unable to find this package in Package Control and realised after searching on the Package Control Discovery page that it has been marked as being compatible to Mac OSX but not Windows or Linux.
Yet, I see windows-specific files in the repo. Is this by accident?
I'd love if we could display "// Foo bar" ➔ "(//).*$\n?" as inline comment (half tone)
Hi Brett,
Thanks for the good work on the plugin. For some reason, it is mostly not working for me using ST2. I know the plugin is loading as I can change the font and theme, but the rest (autopairing, applying formatting to selections, etc.). I was wondering if there are some general ST2 settings that have to be on for the plugin to work, or whether it is conflicting with other plugins.
Thanks.
I'm trying to figure out how to use bold the correct way, while typing new sentences.
If I'm about to type a bold sentence, I press Shift 8 to make the * character, and they appear paired like this: **, with the caret in the middle. The result will be an italic sentence.
But if I press shift 8 one more time, to make *, the pair disappear, and I'm left with only the 2 leading *.
I then type my phrase normally, expecting to type * to finish the bold. But when I do, only one * appears, so I have to press it again to close the bold, but then 2 more appear, leaving me with ***, which means, 2 closing bold stars and one trailing star that has no purpose.
How to fix this ?
The ST2 LaTeXtools packages supports that and it should be straight forward to implement something similar for markup files. The idea is to easily jump from heading to heading.
Here is the the description from the LaTeXtools page and I think the relevant code here:
"The LaTeXtools plugin integrates with the awesome ST2 "Goto Anything" facility. Hit CMD+R (OSX) / Ctrl+R (Windows) to get a list of all section headings, and all labels. You can filter by typing a few initial letters. Note that section headings are preceded by the letter "S", and labels by "L"; so, if you only want section headings, type "S" when the drop-down list appears.
Selecting any entry in the list will take you to the corresponding place in the text."
Currently taking advantage of markdown parsing inside a block level element using MultiMarkdown:
<div class="nav" markdown="1">
Compiles fine, but the theme turns all grey:
Is there anyway I can fix this, I am not suggest it would be a global fix, but any insight to how I could bend it for my own needs, would be greatly appreciated.
Thanks
With auto-word-wrap on: Instead of
* Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin euismod metus eget odio adipiscing
blandit rhoncus augue luctus. Quisque sollicitudin sodales leo eu congue. Phasellus nisi ligula,
eleifend nec pharetra at, porta vel sem.
* Another bullet
I'd love to see
* Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin euismod metus eget odio adipiscing
blandit rhoncus augue luctus. Quisque sollicitudin sodales leo eu congue. Phasellus nisi ligula,
eleifend nec pharetra at, porta vel sem.
* Another bullet
However, I am not sure if sublime text 2 supports a hanging indent.
At least there is indent_to_bracket
.
Instead of indenting, github flavored markdown allows you to wrap code blocks in a triple backtick, like so:
# Here is a code block
```
with code guessing
```
# Here is a code block without guessing
``` coffeescript
with code guessing
```
Would be nice if this was supported inside MarkdownEditing.
feature request: make quick h1 and h2 titles by underlining selection text.
from:
this is going to become an h1 tag
=
to:
you can take a look at this gist that has it working in BBEdit as an applescript , and the venerable dr.drang's improvisation of something similar in Textmate
Currently if a selection is highlighted and the make bold/italics shortcut is pressed:
asdfasdf
becomes *asdfasdf*
/ **asdfasdf**
But there is no way of "un-bolding" or "un-italicizing". If you press the shortcut again it just becomes:
**asdfasdf**
/ ****asdfasdf****
(so I can press super+alt+'i' twice to make text bold)
Is it possible to add a condition so that if you apply the same style again to a selection, it removes it? Or conversely, if you apply the opposite, italics becomes bold and bold becomes italics?
Also, side note, could it be a preference to use _
instead of *
?
I have some problems getting autopairing for backtick to work.
As far as I can see it should work as it does for *
and_
. I suspect that it is because of my german keyboard layout. Do you have any insight in this or a clue on how to debug this?
I tried mapping it to shift + ´
which is where is located on the german keyboard but it doesn't work. How does grace accent (backtick) input work on english keyboard layouts? Is one keypress? On german layouts its multi input and awaits another character - maybe its different on english layouts.
Dialog pops "Unable to download markdownediting"
This is on the console.
Package Control: Error downloading package. HTTP error 400 downloading https://codeload.github.com/ttscoff/MarkdownEditing/zipball/master.
I just installed the package and freaked out at huge font size when I opened up a markdown file.
I don't think a plugin should mess around with such basic settings as font size and font face - there's a reason why I set them to what I prefer in my User Preferences.
Besides, this breaks sublime's font resizing mechanism (see #32).
Here's the snippet:
`` `html
<input type="text" id="phone" />
<script>
// Some code…
</script>
`` `
Everything from this point onward is faded.
(I intentionally put a space between the ` because or else Github would parse it.)
Note that the bug disappears when the new line between the input and script tags is removed.
This SO post describes what I'm looking for (though I didn't write it), as well as a regex to fix it:
Would be nice to be able to add underscores and italics in a Markdown file but not have MarkdownEditing convert them. Could be per-file or as a preferences setting.
Great plugin, thank you!
When I try to create footnotes, sublime text reports:
Traceback (most recent call last):
File "./sublime_plugin.py", line 362, in run_
File "./footnotes.py", line 101, in run
self.view.insert(edit, self.view.find('\s', startloc).begin(), '[^%s]' % markernum)
AttributeError: 'NoneType' object has no attribute 'begin'
Warning: finish not called
Not sure where to go from here.
Can anyone tell me how to replace the deprecated begin_edit()
command in the footnotes plugin? I'm afraid I'm not good enough at Python or the ST3 API to make this work...
I assume, as well, that any changes made in this area will need to branch into a new channel because they'll be incompatible with ST2, right?
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.