jgallen23 / markx Goto Github PK
View Code? Open in Web Editor NEWmarkdown + code => html
Home Page: http://projects.jga.me/markx/
License: MIT License
markdown + code => html
Home Page: http://projects.jga.me/markx/
License: MIT License
First, thanks for the markx module. I'm going to use it heavily.
I ran to a problem though trying to test it on windows machine. Here is what I'm getting:
res.series([
^
TypeError: Object function () {
if (!(this instanceof Resistance)) {
return new Resistance();
}
this.type = 'series';
this.flow = [];
} has no method 'series'
at module.exports (C:...\node_modules\markx\lib\convert.js:46:7)
at Object. (C:...\node_modules\markx\bin\markx.js:62:3)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.runMain (module.js:492:10)
at process.startup.processNextTick.process._tickCallback (node.js:244:9)
I'm using node v.0.8.8 and [email protected] was installed automatically by npm install markx.
Any advice would be highly appreciated.
Thanks!
Github flavored markdown supports strikethrough.
Would it be possible to add it to markx?
See this:
jgallen23/resistance#8
Line here:
https://github.com/jgallen23/markx/blob/master/package.json#L18
I would otherwise make a pull request, but this requires making the proper fix at a later time after initial workaround, so...
While trying to input a Markdown file containing github-style fenced code blocks markx crashes. Seems to me after a cursory look at the code that it's caused by the lack of checks for supported highlighting languages. Something like a descriptive error message, or simply giving up on highlighting unknown languages would be helpful additions.
Node.js 0.8.12 on Windows 8 x64:
d:\node.js\node_modules\markx\node_modules\highlight.js\highlight.js:158
if (mode.compiled)
^
TypeError: Cannot read property 'compiled' of undefined
at compileMode (d:\node.js\node_modules\markx\node_modules\highlight.js\high
light.js:158:15)
at compileLanguage (d:\node.js\node_modules\markx\node_modules\highlight.js\
highlight.js:230:5)
at highlight (d:\node.js\node_modules\markx\node_modules\highlight.js\highli
ght.js:392:5)
at Object.module.exports.marked.setOptions.highlight (d:\node.js\node_module
s\markx\lib\converters\markdown.js:29:19)
at tok (d:\node.js\node_modules\markx\node_modules\marked\lib\marked.js:540:
30)
at tok (d:\node.js\node_modules\markx\node_modules\marked\lib\marked.js:605:
17)
at tok (d:\node.js\node_modules\markx\node_modules\marked\lib\marked.js:577:
17)
at parse (d:\node.js\node_modules\markx\node_modules\marked\lib\marked.js:65
0:12)
at marked (d:\node.js\node_modules\markx\node_modules\marked\lib\marked.js:7
17:10)
at module.exports (d:\node.js\node_modules\markx\lib\converters\markdown.js:
35:16)
Does marks support tables? For example, I have a table like this:
Tables | Are | Cool |
---|---|---|
col 3 is | right-aligned | $1600 |
col 2 is | centered | $12 |
zebra stripes | are neat | $1 |
The rendering/converting to html is fine in Mou. But when I'm trying to use markx, it doesn't work.
try with this page: https://raw.github.com/firstandthird/grunt-load-config/master/README.md
Hey dude! Thanks for this awesome project!
Do you think it'd be possible to support YAML front matter on markdown pages?
https://github.com/mojombo/jekyll/wiki/YAML-Front-Matter
It feels kind of unnecessary to have to write an additional file to specify data.
On a similar note, it might be cool to pass in default information about the file to the template. Like reading the file name and the last modified time with fs.stat, and passing those into the template renderer. That way, you wouldn't necessarily have to provide additional data to specify basic properties.
Just throwing my thoughts out, what do you think?
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.