gruehle / markdownpreview Goto Github PK
View Code? Open in Web Editor NEWBrackets extension for previewing markdown files
License: MIT License
Brackets extension for previewing markdown files
License: MIT License
In the new TopCoat toolbar, the Markdown preview icon is very hard to see against the gray background.
the preview window always in vertical , can u provide horizontal layout, thanks.
Hello. I would like that extension show panel with preview at the top of brackets. Every extension show document on the top, like "Response for Brackets", "SVG Preview" and other, I prefer it. Please, please add option for this, bottom or top.
Thank you ver much for extension.
I noticed some links that have a space between link text and url such as:
[link] (http://adobe.com)
This extension does not recognize that as a link, but it is recognized on git.corp.adobe.com.
Seems like the entire purpose of mark down is to be more lax than mark up processing.
It looks like Marked is primarily focused on having it be used through the command line on top of node. I don't know if there's any performance difference between using it as a JS library like MarkdownPreview does or using it as a node process.
But since Brackets/Edge Code can invoke node processes I thought I'd raise the issue with people smarter than I am and see if it makes sense to try to convert MarkdownPreivew over to use the node implementation of Marked.
Or should the node way of doing things and the JS library way of doing things be the same performance-wise?
Not sure if it is possible, but it would be great if when a relative link is clicked in the preview it would open the file up for edit (if the file is found). This would be helpful for review and testing links especially in documentation projects using markdown.
The MD preview button does not appear when the .md file lives in a folder with a # in the name. eg C:\dev\c# notes\awesomenote.md
To reproduce:
I'm getting Uncaught TypeError: undefined is not a function on main.js, line 90 when I click the icon.
Error: main.js, line 72:
Uncaught TypeError: undefined is not a function
I think I figured out what the steps are to the scrolling issue that I was reporting in #53 which was not a splitview issue after all:
If the editor has enough to make the markdown preview require scrolling to see some lines of markdown but the editor itself doesn't need scrollbars to show all of its content then the markdown preview panel is scrolled back to the top after every change to the document.
Not sure if this is possible, but "in the ballpark" scroll positions are ok I suppose.
Expected:
When I scroll in the main editor window, the markdown live preview scrolls as well to expected rendered scroll position
Actual:
When I scroll in the main editor window, the markdown live preview does not scroll
Result: results panel appears in between the Markdown Preview panel and the code editor.
Ideally, things that are closely connected to the editor should appear higher up vertically in the "panel stack" compared to panels that are more global.
The new Preferences System in Brackets was introduced in Sprint 36 (released February 2014) and now that pretty much all remains of the old system are gone (that is, converted to the new format), the conversion function PreferencesManager.convertPreferences()
is about to be removed in the near future, probably in Release 1.1. Your extension makes use of this method and thus, it'll probably not work any longer after that code is removed.
Simply remove the function call :)
For more information, take a look at adobe/brackets#8751 (comment).
Steps to repro:
Results:
The preview area is not resized based on the new horizontal size.
The Toolbar Icon is not displayed in Brackets 27
Hey Glenn,
This extension doesn't seem to sync to the editor's scroll position with splitview. I used this pretty extensively and, at first, i thought that's how it behaved but switched over to master and saw that it actually does sync correctly with master. I didn't get a chance to debug it to see where it's failing.
I'll try doing that in the next day or so but wanted to give you a heads up just the same.
jeff/splitview-factory is the branch btw. let me know if you run into something before i get a chance to look at it.
Hi, it would be nice to be able to print the preview
Hi,
as mentioned in the title, previewing Windows 1252 encoded files fails.
I'm using the default setup (internal parser).
The failure reason and how I solved it, is here:
EdVanDance/subl-text-2@7bdf71a3826baabf45944b1a753822d5d5b03cb5
Greetings,
Ed
Hello, is there a reason for not to have an ability to export as HTML?
It seems that no matter what I do the preview won't sync the scroll position.
Writing will also make the preview scroll back to the top.
I use Kirby (CMS) and the markdown files are typically txt files rather than markdown. Is there a way to indication to your code to treat files of other extensions as markdown?
Steps to reproduce
Expected behaviour
You can choose markdown type
Actual behaviour
Selection drop-down list disappears.
Additional info
P.S. Ability to see GitHub Flavored Markdown is a great option, one I dreamed about but now it just filling my mouth with wet in vain... =)
I'm guessing that other blocks which take up more than one line of space will also cause this issue.
A sample markdown file which causes this error can be found here: https://github.com/MiguelCastillo/Brackets-InteractiveLinter/blob/master/README.md
Result: Preview is scrolled to the top
Expected: Preview scroll position matches editor scroll pos. It syncs up as soon as you scroll the editor a tad.
Since upgrading to Brackets 1.1 this morning, the plugin is broken. It will render the preview ok, then flip to some broken view. I can attach a screen shot if it will help.
MarkdownPreview uses the GitHub flavoured markdown by default. This may cause some problems for people that want to format documents using the standard syntax.
There should be a configuration option to turn off the GitHub variations and use regular Markdown. Possibly other variants could be included as options as well.
I don't know if this is a global problem but I'm having issues installing the extension on Sprint 34.
Hi,
not sure if this already is supported, but it would be nice to have a "Export as HTML" option. Useful e.g. if you use Brackets.io and the Markdown-preview as an simple editor for e.g. writing contents that should be used on a blog that doesn't support Markdown.
Thanks,
//Daniel
This may not be really appropriate, and I'm not even sure how this would be handled UX wise, but I'd love to see a Word Count report for my MD documents. I commonly write articles for publications using Markdown and I need a quick way to get a word count for my document.
OS: Mac OSX Mavericks
Brackets Version: sprint 37 experimental build 0.37.0-12014 (release abbda8dd2)
Extension Version: 1.0.0
Repro Steps:
Observed Results:
Deprecation warning about using getPreferenceStorage().
Expected Results:
No warnings in console.
Github Flavored Markdown has a rather useful extension for writing task-lists.
- [x] Do a thing.
- [ ] Do another thing.
Becomes:
Currently, the GFM parser for MarkdownPreview shows these tasks as standard list items, like so:
I request that checkbox characters are substituted in place of the intended markup like so:
Optionally, if MarkdownPreview could render interactive checkboxes that would alter the source file, that would be even better!
Hi,
is there a way to add shortcut to toggle preview? If not, then this is a feature request :)
Thanks!
When using only three hyphens to produce a HR: ---
there is no HR on the preview.
Using any other allowed character works, e.g.: ___
, ***
.
If using spaces between the hyphens, then the HR appears in the preview: - - -
, however three consecutive hyphens are valid according to the Markdown Documentation.
Result: at steps 2 and 3, exceptions are thrown in _editorScroll()
because $iframe
is still null.
Workaround: show and then re-hide the bottom panel.
OS: Mac OSX Mavericks
Brackets Version: sprint 37 experimental build 0.37.0-12014 (release abbda8dd2)
Extension Version: 1.0.1
Repro Steps:
like this
.Expected Results:
The formatted text should be lighter, probably white.
With the sidebar hidden, there is too much white space on the right hand side. Would be nice if preview window can be moved/docked vertically.
Thanks for Markdown Preview.
Dear Glenn,
Your extension is not supported apparently by Bracket Sprint 35. ("Marked for removal" in Extension manager...)
Best regards,
David.
Brackets become non responsive when I select github markdown style
I know Markdown is pretty easy, but I'd kill for a quick way to display syntax rules.
Result: preview flickers on and off. When you stop typing, sometimes the preview will be stuck off, showing only the error message: "Failed to load URL about:srcdoc with error (-3)."
If you comment out the [![Build Status](https://travis-ci.org/adobe/brackets.png?branch=master)](https://travis-ci.org/adobe/brackets)
link at top, then preview works normally.
I'm not sure if this is specific to the Travis icon, or if it happens for any external images...
I'd prefer a previoew window besides the text window and not below it, if that would be possible, that would be great.
Even have it in its own window as it is tha case with HTML files would be good.
Hi!
I'm trying to use your extension but I have some troubles with adding code to my file
This is the markdown:
class InfoForm(Form):
title = StringField('Title', validators = [Required(), Length(1, 64)])
body = WysiwygField('txteditor', validators = [Required()])
In the preview window the code renders as literal (except for the )
Is it possible to render it as code and even better with syntax highlight?
Is there a way to express identation without the ?
Thanks!
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.