yaniswang / markdownreader Goto Github PK
View Code? Open in Web Editor NEWmarkdownReader is a extention for chrome, used for reading markdown file.
License: MIT License
markdownReader is a extention for chrome, used for reading markdown file.
License: MIT License
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 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.
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 :-)
As per GitHub-Flavored Markdown:
~~
[]()
syntax when link text is a url): https://google.comth1 | 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';
}
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.
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
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.
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!
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 |
---
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 :)
如题,谢谢!!
It would be perfect if this plugin can support dark theme!
我感觉大纲在左边更舒服一些
无法用|来生成表格,建议加上,非常感谢
The reader should be directed to the anchor.
Redirect does not occur.
[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*
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
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.
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.