Git Product home page Git Product logo

markdown-viewer's People

Contributors

bjcubsfan avatar david-moreau-tas avatar fpirsch avatar gaul avatar isaacschemm avatar peter-kehl avatar thiht 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

markdown-viewer's Issues

Cannot install because of incompatible firefox version

I changed install rdf to

em:id{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/em:id em:minVersion4.0/em:minVersion em:maxVersion66.0/em:maxVersion

but firefox still does not allow me to install my local build, complaining "is not compatible". Could you give me a hint please?

Thank you

hash in location

Say I visit a markdown file and click an internal link, so the URL ends like doc.md#toc_1. Refreshing or reopening this URL, markdown viewer won't work.

Relative Links not working

Relative links seems to be not working.

I tried this in a *.md file : [a link to another article](news2.md) a unfortunately the link to news2.md was not working.

That should be fixed. Then Firefox + markdown-viewer becomes the simplest way for setting up a small personal wiki !

Empty table cells not rendered after bracketed text

A table such as:

aaaaa eeeeeeeeeeeeeee ccccccccccccccc
dddddd eeeeeeeee [ff]
dddddd eeeeeeeeeeeeeee
dddddd eeeeeeeeee

does not render properly in Firefox. The empty cells under [ff](text with brackets, not a link) are not rendered. There is no horizontel line separating them. See attachment.
tabele-bug

Messes up Youtube comments and Gmail hovering for details features

The version I have of the add-on seems to mess up the following:

  • All YouTube comments so they're just a chunk of source code in stead of the actual comments.
  • Gmail hovering details windows, e.g. when you hover over a sender or click the Google Plus notification "bell". Shows chunk of source code in stead of the info.

After debugging a bit, I tracked tracked the problem down to this addon (version 1.6). After disabling everything's fine.

Add editable CSS

That would be great to allow the editing of the css to personalise how the markdown is rendered.

GFM not supporting checkboxes?

Hello,

Thank you for a very useful extension. I saw that the latest version supports GFM so I used your instructions to build the .xpi and installed it. However, I don't seem to get checkboxes when I open the .md file in Firefox.

Is this the default behaviour or is something wrong with my setup?

Thanks!

Links to local files.

I've just tested 1.10 and #22 is now solved, but it works only with links for non-local files (uploaded to an actual website). Can we please have it work with local files as well (saved on the local file system)?

Thanx for considering this.

Keep CHANGELOG.txt up to date with each new release and add version numbers to it too.

CHANGELOG.txt has not been updated since November 2013 and its entries do not include version numbers.

Could there be a way to automate this like for example have it be auto-generated from the commit log? If not, can you then update your release procedure to include a step to update the file before release?

Also, it would be great to keep AMO.org release page up to date too since that's where most people download the addon from..

Issue with Avast!

Just to make you aware, the Markdown Viwer addon for Firefox is being flagged as having a poor reputation by the Avast! Malware and Antivirus tool. Users with Avast! installed are being prompted to remove the addon. Not sure if you can do anything about this.

2014_12_24_01_51_04_issues_thiht_markdown_viewer

Transition to Jetpack SDK

Following #20 and #46, + the fact Mozilla is progressively deprecating XUL extensions, it becomes urgent to transition to another solution.

The two solutions are the Jetpack SDK and WebExtensions.

WebExtensions don't allow mime-type registering (yet?) so they're not an option for now.

As always, bhollis/jsonview is a good source of inspiration since it does the same thing as Markdown Viewer but for JSON :)

Important things to check along the development:

  • Linux support
  • Windows support
  • UTF-8 support
  • Electrolysis support
  • Basically no behavioral regression

Syntax highlighting

It used to work in previous versions but it's broken with the latest versions of Firefox (probably Firefox 27 or 28) so I removed it for now.
I'll try to figure out how to load a chrome js file after the page loaded.

Markdown not rendered on multiprocess Firefox

Rendering doesn't work when opening a .md file with Firefox developper edition (43.0a2).

I did some debugging that shows that an exception is raised on loading:

NS_ERROR_XPC_CANT_PASS_CPOW_TO_NATIVE

It's illegal to pass a CPOW to native code arg 4 [nsIParserUtils.parseFragment]

parseHTML@chrome://markdown-viewer/content/markdown-viewer.js:38:1
MarkdownViewer.onPageLoad@chrome://markdown-viewer/content/markdown-viewer.js:84:20
EventTargetParent.dispatch/<@resource://gre/modules/RemoteAddonsParent.jsm:564:15
Prefetcher.withPrefetching@resource://gre/modules/Prefetcher.jsm:460:14
EventTargetParent.dispatch@resource://gre/modules/RemoteAddonsParent.jsm:560:11
EventTargetParent.receiveMessage@resource://gre/modules/RemoteAddonsParent.jsm:508:1

And there are lots of unsafe CPOW usage messages in the console.

So, the problem seems to appear with multiprocess versions of Firefox.

I use Markdown Viewer 1.8.1-signed.

According to this article it seems that issues between plugins and CPOW can happen but are solvable. Maybe this MDN page contains helpfull informations.

This issue is related to issues #41 and #42 but I am creating a new one with a more appropriate title. I hope it's ok!

Include javascript as javascript

I wish to use javascript in an md file. I was able to do what I needed by attaching javascript to an onclick attribute of a button. This no longer seems to work. Is there any other way?

Incompatibility with RightToClick: "window.oldSetTimeout" error on top of file contents.

window.oldSetTimeout=window.setTimeout;window.setTimeout=function(func,delay){return window.oldSetTimeout(function(){try{if(!document.documentElement.getAttribute('stopTimers')){if(typeof func=='string') {var nfunc = new Function(func); nfunc();} else func();}}catch(ex){}},delay);}; window.oldSetInterval=window.setInterval;window.setInterval=function(func,delay){return window.oldSetInterval(function(){try{if(!document.documentElement.getAttribute('stopTimers')){if(typeof func=='string') {var nfunc = new Function(func); nfunc();} else func();}}catch(ex){}},delay);}; Description

Add elementary instructions!

I installed the add-on but cannot figure out how to use it. I have a .md file but if I do File>Open, Firefox asks what to do with this? "Open with Xcode (default)", DownThemAll!, Save File?

I cannot see how to get a Firefox window containing .md source, as shown in your screen shot. And if I do, how then do I say, "render this"?

Fix for printing problem on Linux

Issue and FIX (BELOW): Printing clips content for long lines due to a hardcoded CSS value,width: 940px; For example a paragraph with a lot of words will not wrap lines but each of the wrapped lines gets clipped so we loose some text on the right side.

I have this issue on Ubuntu 14.04 running firefox 38.0 using your plugin version 1.8.1

This is caused because markdown-viewer.css has a hardcoded

body {
...
width: 940px;
}

So I changed to

width: 90%;

YIPPIE!!
With a one-line fix, now I can print PORTRAIT or LANDSCAPE and paragraphs are not clipped when printing. Also the 90% makes nicer when viewing on screen.

Cheers,
-- [email protected]

Doesn't work with FF 34.0.5

After the update to FF 34.0.5 whenever I try to open a local .md file, it prompts me with what I want to open it (let's say emacs) rather than viewing it in the browser itself.

Use utf-8 as default encoding

When .md file is opened locally, and it doesn't contain utf-8 BOM, Firefox traits encoding as ascii.
Please, consider specifying the default encoding as utf-8.

Ignore YAML-metadata

Many of the popular markdown-implementations use YAML for metadata. Currently, the extension thinks that YAML-metadata should be parsed just like the rest of the text. A perfect implementation would be to parse the YAML-metadata correctly, but a sufficient solution to previewing would be to ignore the YAML completely.

Table not working

I write this one

| state | endtime | Hello |
|-------|---------|-------|
| as    | asd     | gds   |
| ada   | asaf    | gsfsd |

but not work.

Doesn't associate with *.md files on Linux

The plugin works great so long as the extension is *.mdown, but *.md is what I generally use.

EDIT: I noticed you have already noted this in BUGS. I guess this makes it official ;)

I will add (as you probably suspect) that this behaviour is observed on Ubuntu Linux 12.04 LTS.

Deprecated interface in use

There's a compatibility note when submitting the add-on to addons.mozilla:

Avertissement: This add-on uses nsIScriptableUnescapeHTML, which has been deprecated in Gecko 13 in favor of the nsIParserUtils interface. While it will continue to work for the foreseeable future, it is recommended that you change your code to use nsIParserUtils as soon as possible.

See bug https://bugzilla.mozilla.org/show_bug.cgi?id=650784 for more information.
It's located in chrome/content/markdown-viewer.js:

return Components.classes["@mozilla.org/feed-unescapehtml;1"]
                 .getService(Components.interfaces.nsIScriptableUnescapeHTML)
                 .parseFragment(html, !!isXML, baseURI, doc.documentElement);

See nsIParserUtils on the MDN

EDIT: Drop it, it's already taken in consideration in the code with a conditional use of the new interface if it's available only.

Bug: link with anchor

If an anchor is placed in the link, viewing're not done

file:///C:/Users/XXXXXXXX/AppData/Roaming/Sublime%20Text%202/Packages/TODO-Marker/README.md#bug

renders HTML pages

please only try to render pages that are delivered using a text/... mime type except of text/xml and text/xml+xhtml.

reason: some XHTML and HTML pages have an URL ending in .md, and we shouldn’t render those as they are likely renderings of markdown documents, anyway, and are made unreadable.

example

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.