Git Product home page Git Product logo

markdownreader's People

Contributors

edelstone avatar ept avatar itestauipi avatar iuhoay avatar samb0t avatar walkermatt avatar yaniswang 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

markdownreader's Issues

Inline Code not working under rare circumstances

This

- Lorem `ipsum`
	- Lorem ipsum
- Lorem ipsum
	- Lorem ipsum
	
	=> Lorem ipsum

get's rendered as

  • Lorem `ipsum`

    • Lorem ipsum
  • Lorem ipsum

    • Lorem ipsum

    => Lorem ipsum

when it should be

  • Lorem ipsum

    • Lorem ipsum
  • Lorem ipsum

    • Lorem ipsum

    => Lorem ipsum

The indented non-list line at the end seems to break the parser.

Reference style links can't contain an uppercase Z in the URL

Reference links with an uppercase Z in the URL such as:

[Test]: http://test.url/ZError-Should-be-part-of-URL

truncate the URL after the Z, the [Test] link will only have http://test.url/Z as the URL and the remainder is displayed on the page like so:

Error-Should-be-part-of-URL

This appears to be a bug in the Showdown module. Replacing showdown.js with the latest version corrects the problem.

Variables defined with commas

Hi! Thank you very much for markdownReader, it's really the best markdown viewer for Chrome.

I'm novice in JS and I'm trying to better understand your code. In markdownreader.js you sometimes declare variables using comma:

// lines 97-98:
var level = 0,
    lastLevel = 1;

// lines 157-158:
var fileurl = location.href,
    bLocalFile = /^file:\/\//i.test(fileurl);

instead of more traditional:

// lines 97-98:
var level = 0;
var lastLevel = 1;

// lines 157-158:
var fileurl = location.href;
var bLocalFile = /^file:\/\//i.test(fileurl);

Is there any reason why you do it this way?

I'm asking just for my self-education. Thanks :-)

GitHub-Flavored Markdown

As per GitHub-Flavored Markdown:

  • Strikethrough with surrounding ~~
  • Autolinking (no need for the []() syntax when link text is a url): https://google.com
  • Tables (see below)
  • Syntax highlighting for code blocks (see below)
th1 | th2
--- | ---
td1 | td2
td3 | td4
th1 th2
td1 td2
td3 td4
<this is="an">html code block</this>
.this > .is a {
  css: 'code' block;
}
function js() {
  this.is = 'a js';
  var code = 'block';
}

MarkdownReader doesn't work when Chrome updated

Hi Yanis,
I am one of the MarkdownReader extension eager users! Thanks for your nice extension.

It was working well on my Mac until last week, then when Chrome was updated to latest version it stopped working by showing a white page.
My current Google Chrome version is: Version 80.0.3987.106 (Official Build) (64-bit)
Also MarkdownReader version is: Version 1.0.15

Do you have any idea how to fix it or is there any work around?
Best Regards and thanks again,
Shahram.

Bad-formatted list item notes

When righting notes under unumbered list items, the first one is rendered correctly but not the others.

This simple test case should reproduce the issue:

Here is the bug :

* the note below this item is OK
    > it is well located and formatted
* but not the following one
    > it's printed at the end of the item
* nor this one
    > omg please do something

capture

Feature request: LaTeX equation rendering

Currently, if I include a LaTeX equation in my markdown, it is just rendered as plain text. I believe that most flavours of Markdown actually support LaTeX equations by default and it would be great to have this feature in this Markdown reader as well.

Front Matter Support

All of the major static website generators (Jekyll, Hugo, Hexo) support front matter in Markdown files. See:
https://gohugo.io/content-management/front-matter/

I imagine it may be difficult detecting whether or not content is actually front matter but it would be cool to support so that these files can be previewed in Chrome without garbage at the top!

Horizontal rule after table has no space in between

When drawing a horizontal line after a table, the line is just at the same height as the lower bound of the table.

As a user I would expect the line to have the same space after the table as if I wrote a text instead.

Code example here:

| My | Table |
| :---: | :--- |
| Data | Here |

---

inline math is in fact display math

  1. What you call inline math. ordinary we call display math.
  2. Your demo matrix seems not diaplay correctly, in my chrome browser, only show one line.
  3. Need feature: really in-line math such as $x^2$.

KaTeX is outdated

Hi!
I am trying to use matrices in my markdown with your plugin. This functionality was added to KaTeX back in June of 2015 (see this issue) with version 0.4.0. The commit in your repo that added katex.min.js was in August 2015, so in theory it's possible that the version in markdownReader already supports matrices. At least I'm unable to get it to work...
Still, the KaTeX version in the repo is at least one and a half years old, so I would be nice if you could upgrade. Maybe you could also document the KaTeX version used by your browser extension.
Overall, I really appreciate markdownReader.

I can make a pull request with an updated KaTeX version if you'd like me to and if you think that nothing will break :)

HTML-tags in headings not shown in TOC

TOC bug report.

If heading contains HTML-tags, these tags will be ignored in TOC.

# Test

Lorem ipsum ...

## `<foo>` and `<bar>`

Lorem ipsum ...

## Some another heading

Lorem ipsum ...

image

Self-referential/Intradoc anchors don't work

Steps to reproduce:

  1. Create a markdown file with contents below
  2. Click on "Displaytext"
  3. Scratch head at why it isn't working :)

What should happen:

The reader should be directed to the anchor.

What actually happens:

Redirect does not occur.

md content

[Displaytext](#anchor-to-link-to)
*insert however many lines of Lorem Ipsum is needed to make the linked to anchor not visible on your screen*
# Anchor To Link To
*more Lorem Ipsum to make the page change obvious*

Bug?: Options menu item disabled

screenshot from 2017-10-30 23-36-16

The options menu item is grayed out. I discovered this while trying to change the markdown style to the github flavored style mentioned in this issue: #11

feature request: easy toggle-button in URL when extension is active

ie: it would be nice to be able to easily toggle the extension on and off when one wants to see the raw content (without having to visit chrome://extensions, find the extension, untick "enable")

eg: JSON Formatter chrome extension does this buttons at the top-right that are "raw" and "parsed" - even better would be if it was up in the URL bar so as not to be confused with the converted content.

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.