Giter Site home page Giter Site logo

sublimetext-markdown / markdownediting Goto Github PK

View Code? Open in Web Editor NEW
3.2K 3.2K 650.0 4.82 MB

Powerful Markdown package for Sublime Text with better syntax understanding and good color schemes.

License: MIT License

Python 98.77% Batchfile 1.23%
gfm markdown markdown-editor sublime-text

markdownediting's People

Contributors

alvarogarcia7 avatar amclain avatar blastmann avatar bordaigorl avatar burkeholland avatar dave-ellis avatar deathaxe avatar demidovakatya avatar dragonfyre13 avatar eating247 avatar eugenesvk avatar felixhao28 avatar flexo333 avatar gillibrand avatar giovanh avatar hypotheses avatar johnkary avatar kenspirit avatar kylebebak avatar madeindjs avatar maliayas avatar mauricerkelly avatar odmina avatar rogercloud avatar suor avatar ttscoff avatar tvalimaki avatar wesbos avatar westacular avatar willrowe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

markdownediting's Issues

Bold and italic shortcuts should work on the current word, if nothing selected

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.

code block after list

Hi

I get a small bug with style cheet. Here are the screen shot:

Code block ok

block-code-ok-1

Code block bug?

block-code-not-ok-1

Perhaps I miss something

Plans to use Marked as preview?

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.

Licence?

I'll make some update to the README. Would you like me to put licence, too? Currently I don't know the licence type.

Default settings

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.

Markdown in Sublime Text

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.

dark theme

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.

Can't Change Settings

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.

Shortcut for inline code

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

EOL highlight

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:

st2

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.

Missing Symbol List (Goto Symbol) Support

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.

Ability to turn off header surrounding

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.

Error under Sublime Text 3

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>)

Support for pandoc?

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.

Bold (and italic) should wrap the current word

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.

Collapsible Headings

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.

Error parsing plist xml

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 ;-)

Footnotes raise error in the console and don't work

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>)

enhancement request: User specific settings page

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).

Inline commenting

I'd love if we could display "// Foo bar" ➔ "(//).*$\n?" as inline comment (half tone)

MarkdownEditing not working on ST2 Build 2220 on Linux?

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.

How to use bold the right way ?

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 ?

support markup headings in st2 "Goto Anything"

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."

HTML elements and highlights.

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

Word-wrap for lists with hanging indentation

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.

Support github's ``` for code blocks

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.

Intelligent Bolding & Italicizing

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 *?

Backtick autopairing not working

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.

Don't specify font settings in the plugin!

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).

Incorrect (faded) highlighting for the rest of the document after this snippet

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.

Issue creating footnotes: returns error

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.

A little plugin help

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.