Comments (6)
I literally just replaced the markdown parser with the github flavored markdown parser. Next push should have a fix.
from docs.
Hrmm, so that didn't seem to help.
I would really appreciate it if you could hunt down this issue. It's been bugging me and I haven't had the time to track it down. :-(
from docs.
The problem is with code highlight. I commented the hl()
call in article.js
and the encoding problem is gone. I'll dig into the highlighting. Why not go with a browser highlighting? Are you avoiding js on the docs?
from docs.
Why not try this one?
http://search.npmjs.org/#/koala (from TJ Holowaychuk)
I would avoid going deep into the vendor folder.
from docs.
@dresende @Marak I just gave koala a shot:
https://github.com/nodejitsu/docs/blob/gh-28/lib/generators/article.js#L97-L117
Indeed, it seems that the results from using koala have much fewer encoding errors. However, even with screening out invalid javascript by testing uglify-js's ability to parse the code, I'm now getting a few jsdom "invalid html" warnings. The results look fine, but invalid html can't be good.
Is there a way to reasonably intercept such jsdom errors? Maybe @tmpvar knows.
from docs.
This issue has been "hackfixed". It's relatively brittle, but seems to suffice for the docs.
from docs.
Related Issues (20)
- how-to-use-fs-create-write-stream need writeStream.end()
- Consistent capitalization in names and titles HOT 15
- Doctypes get stripped by jsdom/weld process HOT 8
- Some links on main page get wrapped by anchor tags twice HOT 4
- Expose RSS Feed HOT 2
- Explicit order for home page left nav HOT 1
- Broken links in multiple articles HOT 1
- Miss "authors" data. HOT 1
- [nodedocs.css - personal changes] HOT 6
- static html and css files should be copied from ./themes (and/or ./static) to ./public HOT 2
- All content titles should come from metadata.json, not from path HOT 1
- ::undefined page title HOT 1
- <time> has been deprecated.
- Can't generate: ENOENT pages/../page.json HOT 2
- missing '}' on the last code example on articles/getting-started/control-flow/how-to-write-asynchronous-code
- Ampersands not displayed correctly HOT 1
- <docs> Is that "What is require?" wrong? HOT 5
- Note that these are not Nodejitsu docs
- bad link to error conventions
- What is the license for nodejitsu/docs? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docs.