demon386 / smartmarkdown Goto Github PK
View Code? Open in Web Editor NEWA plugin for facilitating editing markdown in Sublime Text 2. Features are borrowed from Org mode of Emacs.
License: MIT License
A plugin for facilitating editing markdown in Sublime Text 2. Features are borrowed from Org mode of Emacs.
License: MIT License
On IA writer for mac and ueberwriter for linux, you have a smart indent feature, that indents softwraped lines to align them with the text, rather than the list's bullet.
It seems like inserting two spaces, but those are acutally not saved (it is a softwrap anyway).
E.g.:
Is that even possible in sublime? If yes, it would come nice in the next update ;-)
Is it possible to fold the content on the same line of the heading?
Like this:
# Heading 1 [...]
## Heading 2
Rather than like this:
# Heading 1
[...]
## Heading 2
It would be nice, if would be possible to disable run smart_list command.
Sasha is:
1. Star!
2. Galaxy!
3. Universe!
Sasha is:
1. Star!
1. Galaxy!
1. Universe!
I preferred to use numbered list without increment, because:
If in settings file "mde.auto_increment_ordered_list_number": false,
, user will have expected behavior, not actual.
User may comment or remove lines 12—23, but if package will update, user needs to make changes again.
See similar setting in Markdown Editing package.
Thanks.
According to the Markdown syntax, unordered lists can use asterisks, pluses, and hyphens as list markers.
I'm submitting a pull request.
I'm trying to get headline folding working in Fountain files. I added the following keybinding to my User Keymap file and the console says it activates the smart_folding command but it doesn't fold the text and it just inserts a tab character. So there must be some code in smart_folding.py that prevents it from running on Fountain files. It would be cool to just get this working on my own.
{ "keys": ["tab"], "command": "smart_folding", "context":
[
{ "key": "selector", "operator": "equal", "operand": "markup.section.fountain" }
]
}
Is there a way to not fold the blank line before a heading into the previous fold?
I have a blank line before "Timeline", but it gets folded into the level 3 block above it. When I look at this I get confused and think maybe it didn't unfold correctly, or I made a mistake and that "Timeline" should also be a level 3 heading.
I would only expect the blank line to show if the heading is higher in the hierarchy than the previous fold.
Is it possible to extend the Smart Fold functionality to include lists?
I've been outlining a lot in Markdown recently and it would be very useful to have a keybinding to fold and collapse lists. (But not tab, because I use that for indenting/unindenting as per #9 :)
Just installed. Excited this still works!
smart_folding wasn't working for me but global_folding was so I changed a line in the key bindings and it worked!
Note: just changed the operand
in smart to match that in global: text.html.markdown
Not sure what it did but it made me happy.
old:
{ "keys": ["tab"], "command": "smart_folding", "context":
[
{ "key": "selector", "operator": "equal", "operand": "markup.heading.markdown" }
]
},
{ "keys": ["shift+tab"], "command": "global_folding", "context":
[
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown" }
]
},
new:
{ "keys": ["tab"], "command": "smart_folding", "context":
[
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown" }
]
},
{ "keys": ["shift+tab"], "command": "global_folding", "context":
[
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown" }
]
},
I have been trying using to the SmartMarkdown Plugin to render to PDF and HTML without issue and including the images but when I try to render it to DocX I get the following error:
Fail to generate output.
�Command: pandoc -t docx /var/folders/j_/lpm97wj53cbc0cnprvps5nh00000gn/T/tmprCTLsX.md -o /Users/jomahoney/code/FYP/Project.docx
Errors: pandoc: Could not find image `images/login.png', skipping...
pandoc: Could not find image `images/profile.png', skipping...
pandoc: Could not find image `images/module.png', skipping...
pandoc: Could not find image `images/workbench.png', skipping...
But as mentioned the images are in the correct directory. I notice the the render uses a temp file, perhaps this is causing the images to not be found? Any ideas?
I am using sublime text 3 (3114) on a mac with el capitan. I downloaded smart markdown, but, in editing a markdown file, nothing as claimed in the read me file happens.
First of all, section folding does not work: TAB
just gives me some spacing, not folding.
Second, table does not function either. But automatic list-generation does work, which starts to confuse me. What might I have done wrong?
Thanks in advance for any help.
Does SmartMarkdown support moving table columns left / right? If not, I think this would be a great addition since doing it manually takes lots of edits in a big table.
Just like the code folding function on code, Sublime displays a down-arrow on the side and mouse click results code folding.
Is it possible to do that?
This is a feature request based on a feature in MarkdownEditing (which I can't use reliably for a few reasons.)
*
and _
should behave like parenthesis and quotes do in other code, when you select some text and type *
, it should wrap that text with the *
. When there is a second paired *
in your text, typing another should simply skip it (like typing a closing quote when one has been provided.)
Basically, match the behavior of Sublime's quotes.
Hi
How about adding support to increase / decrease heading level? Maybe Cmd + Square Brackets?
I'm happy to implement the code for this if someone agrees that it's a good feature.
D
Is there any interest/possibility of incorporating the SublimeTableEditor plugin? (I am referring to the table manipulation.)
Pandoc don't generate any files if text contains russian (cyrillic) simbols.
for example simple md-code on which nothing happens:
# Фига
For myself I run pandoc with parameter -V lang:russian
to supprt russian symbols.
I use demon386/SmartMarkdown as it supports pandoc/markdown tables, but I envy the power (move/join/split columns and row) of vkocubinsky/SublimeTableEditor. Could demon386 make use of vkocubinsky, or vkocubinsky support pandoc style tables? What happens if one has them loaded at the same time?
I'm getting the popup error:
No such file or directory: 'pandoc'
The reason for this is that pandoc is not on whatever path sublimetext is using.
You have a place to add tex_path
and the jclement version pandoc_render.py
is based on has a user option pandoc_path
. I'd recommend adding a user option for pandoc as well.
Feel free to use it in the documentation if you like.
When I try to indent a whole code block that contains a "|", the indentation doesn't happen. Nothing happens.
Example code:
// Shortcode for custom language selector
// Use: [custom_lang_selector]
function dfx_wpml_custom_language_selector(){
do_action(' dfx_lang_switcher("fr,nl,en"," | ") ');
}
add_shortcode( 'custom_lang_selector', 'dfx_wpml_custom_language_selector' );
Worse, when I try to indent only the line that contains the "|" (line 4 in this case), most of the code is removed. To me it looks like a bug. Maybe an incompatibility with the tables functionality.
Deactivating SmartMarkdown restores the possibilitly of indenting normally.
So this is in the category of first-world problems, but given I can load this 3000-headlined Markdown file into Python, do a bunch of regexp on it, and write it to JSON in much less than one second, I hope Sublime can be induced to fold the headlines in less than six seconds. All of Sublime freezes during these six seconds.
This is a feature request.
I want to be able to view all the headers in a document as an "outline view" of large documents, in order to navigate quickly and see the birds-eye view.
So, I'd love the SHIFT-TAB behavior to show all the headers instead of just the top-level ones.
Is it possible to identify embedded latex and use latex syntax highlighting for those chunks — as is the case for the html/js syntaxes?
Smartworkdown simply does not work on Windows because it cannot find pandoc.exe. With sublime text 3, the plugin is stored as a package and there is no easy way to modify the path to Pandoc.exe
Here is a sample smart list:
-li
- li
- - li
- -
As you can see an extra bullet is generated sometimes. It seems like the extra space after the bullet is causing this. If I remove the space it generates one bullet like in the first line.
Pandoc allows markdown, including code blocks, inside of grid tables. This is very frequently useful. However, the current implementation zaps all white space at the beginning of cells, ruining code indentation/formatting.
I've submitted a pull request with a fix.
This plugin is great -- the folding feature is just what I needed. Is it possible to control the "global folding" behavior so that shift + tab
folds/unfolds all <h2>
's rather than <h1>
's? I'm not seeing this in the API and would prefer not to hack your source code.
It would be nice if I could just hit tab when I have a list item and increase the indentation level. Also, I know shift-tab folds the headings up, but maybe shift-alt-tab or something else to decrease the indent level. I use your plugin for note taking and it's great. Thanks.
Can you provide a quick pointer for installing your add-on into Sublime Text 2? I'm new to ST2, and I have no idea how to install add-ons. It looks like, on my Mac, you drop .packages into ~\Application Support\Sublime Text 2\Packages, but the files I see there all have the .package extension, not the individual files in your git repository. Thanks.
When moving list items around I often find myself pasting a bulleted line on a line with a bullet created by Smart List. So, if I have - Something
on the clipboard I end up with:
- - Something
How possible/efficient/practical/etc. would it be, when pasting in markup.list
, to examine the clipboard and, if the content begins with the same bullet as the current line, to paste over it? (This would probably work by removing the -
that the Smart List has created, rather than fiddling with the content in the clipboard.)
I guess I don't understand how to use this plugin.
I installed the plugin and tried to use it on *.txt, *.md and *.org files, but I didn't get the command pallete commands nor did the tab worked.
Can you please explain how to use the basic functionality of the plugin?
Thanks.
i can't find any command in the command palette associated with pandoc execution. How do we turn markdown to html from sublime-text using smart-markdown?
for copy text now i should double press ctrl+c
change your hotkeys for something else
I have a problem where I'm using the "~" symbol within some text to indicate approximation and SmartMarkdown is highlighting it as an error (because it's looking for the closing ~ which would indicate strikethrough, I suppose).
Can I turn off this error reporting? Preferably just for tildes
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.