Comments (3)
I have a same error with chinese language heading.
For example, wen i used
# 中文
or
中文
====
or other heading
That the page became white.
Wrong messages:
echo "# 中文" | ./github-flavored-markdown.rb
/usr/lib/ruby/1.9.1/rexml/source.rb:162:in `initialize': incompatible character encodings: ASCII-8BIT and UTF-8 (Encoding::CompatibilityError)
from /usr/lib/ruby/1.9.1/rexml/source.rb:17:in `new'
from /usr/lib/ruby/1.9.1/rexml/source.rb:17:in `create_from'
from /usr/lib/ruby/1.9.1/rexml/parsers/baseparser.rb:139:in `stream='
from /usr/lib/ruby/1.9.1/rexml/parsers/baseparser.rb:116:in `initialize'
from /usr/lib/ruby/1.9.1/rexml/parsers/treeparser.rb:9:in `new'
from /usr/lib/ruby/1.9.1/rexml/parsers/treeparser.rb:9:in `initialize'
from /usr/lib/ruby/1.9.1/rexml/document.rb:243:in `new'
from /usr/lib/ruby/1.9.1/rexml/document.rb:243:in `build'
from /usr/lib/ruby/1.9.1/rexml/document.rb:43:in `initialize'
from ./github-flavored-markdown.rb:62:in `new'
from ./github-flavored-markdown.rb:62:in `header'
from ./github-flavored-markdown.rb:99:in `render'
from ./github-flavored-markdown.rb:99:in `fromMarkdown'
from ./github-flavored-markdown.rb:103:in `<main>'
from vim-instant-markdown.
Hmmmm, when I do echo "# 中文" | ./github-flavored-markdown.rb
it actually works - I've tried it in both Ruby 1.8.7 and 2.0. Maybe try upgrading to the latest versions of things? Also, maybe something is causing your Ruby default encoding to not be UTF-8?
from vim-instant-markdown.
When i update rbenv and rebuild ruby, it's works so fine. Thanks for your help!
发自我的小米手机
suan [email protected]编写:
Hmmmm, when I do echo "# 中文" | ./github-flavored-markdown.rb it actually works - I've tried it in both Ruby 1.8.7 and 2.0. Maybe try upgrading to the latest versions of things? Also, maybe something is causing your Ruby default encoding to not be UTF-8?
—
Reply to this email directly or view it on GitHub.
from vim-instant-markdown.
Related Issues (20)
- Can't Follow link in the preview page HOT 2
- content security policy - scripts are blocked HOT 2
- autoscroll does not work HOT 5
- always get EOF in browser. HOT 2
- :InstantMarkdownPreview fail to pops up the preview page after reopen markdown file HOT 1
- Can not work in tmux
- Lack of smdv using‘s explanation HOT 1
- autoclose on exit from file HOT 2
- Crash on defining HOT 1
- [Feature Request] Blocklist certain paths/patterns HOT 5
- How to start it when autostart is off HOT 1
- Document support for vim8 build-in package manager users HOT 1
- Auto scroll marker html tag inside latex formulas causes TeX parse error HOT 7
- How to invoke mathjax? HOT 5
- Include in Neovims `plugins-setup.lua` to use it with Packer package manager HOT 3
- Render error while typing HOT 2
- cant configure proper options for g:instant_markdown_browser HOT 7
- Provide Plantuml Support HOT 4
- Neovim-first Lua rewrite of the plugin
- Undefined control sequence \ket 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 vim-instant-markdown.