Coder Social home page Coder Social logo

markdownpreview's People

Contributors

albertinad avatar chrishenry avatar codymaines avatar gruehle avatar jkelleher avatar k5e avatar larz0 avatar peterflynn avatar petetnt avatar ryanstewart avatar shafdog 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

markdownpreview's Issues

horizontal layout

the preview window always in vertical , can u provide horizontal layout, thanks.

Feature option request: display preview on the top

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.

Parser should be more lax when parsing links

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.

Any Benefit to Using the Node Process of Marked?

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?

Better preview

I'd love to have a better way to see the formatted markdown text. My idea is to show the markdown code only for few rows near the active row, and show the rest as formatted text.

I think this mockup gives the idea better than my words:
mockup

Thanks.

[Feature Request] open relative links in brackets.

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.

Preview button not showing with certain folder names

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:

  • Create Folder with a # in the name. eg. "C# notes"
  • Make a new .md file in the folder
  • MD button does not appear.

MdP does not sync scroll position if the editor doesn't scroll

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.

  1. Create a new md file
  2. Turn on MdPreview
  3. Resize the MdPreview panel so that it can only show a few lines
  4. Add some mark down in the editor
  5. Keep adding mark down until the line you just typed in the editor is not visible in the MdPreview panel
  6. Scroll the MdPreview panel to the bottom to see what you just typed
  7. Switch back to the editor and add another line of markdown to the end of the document
    ==> MdPreview panel scrolls back to the top

[feature request] Live preview scroll matching

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

Duplicated buttons

Greetings,

After I updated both program and extension, I now have two buttons for the Markdown preview (fig. 1).

fig-1

When I click on the first it disappears and I can see the preview (fig. 2).

fig-2

When I click on the second it disappears too and I get two preview at the same time (fig. 3).

fig-3

Panel should appear above Find in Files

  1. Open a .md document & turn on Markdown Preview
  2. Perform a Find in Files / Replace in Files

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.

PreferencesManager.convertPreferences() is deprecated

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

Preview area not resized when hiding/showing sidebar

Steps to repro:

  1. Open a markdown document and show the preview
  2. Select View > Hide Sidebar (or View > Show Sidebar if sidebar is already hidden)

Results:
The preview area is not resized based on the new horizontal size.

No icon

The Toolbar Icon is not displayed in Brackets 27

Preview doesn't sync with splitview

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.

printing

Hi, it would be nice to be able to print the preview

Previewing cp1252 encoded files fails

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

Doesn't sync scroll position

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.

Identify with txt or md files

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?

Clicking on markdown type drop-down list make it disappearing.

Steps to reproduce

  1. open md-preview panel
  2. mouse-in to it (markdown selection drop-down list appears)
  3. click it

Expected behaviour
You can choose markdown type

Actual behaviour
Selection drop-down list disappears.

Additional info

  • Brackets 0.35.0-10897
  • extension installed from GitHub url as well as from extensions repo

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

Panel out of sync with scroll position initially

  1. Open a text file and scroll to the middle
  2. Open the MarkdownPreview panel

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.

Rendering issues in 1.1

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.

Add option to use regular MD instead of the GitHub variant

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.

Export the HTML

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

Feature Request - Word Count

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.

Update preferences code for Sprint 37

OS: Mac OSX Mavericks

Brackets Version: sprint 37 experimental build 0.37.0-12014 (release abbda8dd2)

Extension Version: 1.0.0

Repro Steps:

  1. Open Brackets with Markdown Preview extension installed
  2. Open Developer Tools and look at console.

Observed Results:
Deprecation warning about using getPreferenceStorage().

Expected Results:
No warnings in console.

Render GFM tasks with checkboxes as intended.

Github Flavored Markdown has a rather useful extension for writing task-lists.

- [x] Do a thing.
- [ ] Do another thing.

Becomes:

  • Do a thing.
  • Do another thing.

Currently, the GFM parser for MarkdownPreview shows these tasks as standard list items, like so:

  • [​x] Do a thing.
  • [​ ] Do another thing.

I request that checkbox characters are substituted in place of the intended markup like so:

  • ☑ Do a thing.
  • ☐ Do another thing.

Optionally, if MarkdownPreview could render interactive checkboxes that would alter the source file, that would be even better!

No horizontal rule with three hyphens

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.

Exceptions thrown if panel not shown yet

  1. Start with a clean launch of Brackets
  2. Open a text or .md file
  3. Scroll around

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.

Text with code formatting too dark for Dark Theme

OS: Mac OSX Mavericks

Brackets Version: sprint 37 experimental build 0.37.0-12014 (release abbda8dd2)

Extension Version: 1.0.1

Repro Steps:

  1. Open Brackets with Markdown Preview extension installed
  2. Create or open a markdown file that contains code formatted text like this.
  3. Select the Dark Theme from the option menu.

Observed Results:
screen shot 2014-04-08 at 10 00 16 am

Expected Results:
The formatted text should be lighter, probably white.

Ability to dock preview window vertically.

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.

Syntax help

I know Markdown is pretty easy, but I'd kill for a quick way to display syntax rules.

Install failure

Windows 8.1
Latest Brackets
Extension Manager fails to install the plugin
Drag and drop zip file download from github also fails

capture113

capture112

capture111

table not render correctly

it seems that this form of table is not rendered correctly.

header | header | header
--------- | --------- | ---------
text      |  text      | text 

it should be:

header header header
text text text

but now it is :

screen shot 2014-06-19 at 21 41 56

table lost its border

External assets sporadically break preview

  1. Open the main README.md for Brackets
  2. Start typing rapidly

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

Code styling

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!

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.