Markdown is a plain text formatting syntax aimed at making writing for the internet easier. The philosophy behind Markdown is that plain text documents should be readable without tags mussing everything up, but there should still be ways to add text modifiers like lists, bold, italics, etc. It is an alternative to WYSIWYG (what you see is what you get) editors, which use rich text that later gets converted to proper HTML.
It’s possible you’ve encountered Markdown without realizing it. Facebook chat, Skype, and Reddit all let you use different flavors of Markdown to format your messages.
Here’s a quick example: to make words bold using Markdown, you simply enclose them in * (asterisks). So, bold word would look like bold word when everything is said and done.
All told, Markdown is a great way to write for the web using plain text.
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
/Users/xxxxxxxx/.rvm/rubies/ruby-2.2.2/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in require': cannot load such file -- bundler (LoadError) from /Users/xxxxxxxx/.rvm/rubies/ruby-2.2.2/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in require’ from /Users/xxxxxxxx/.rvm/gems/ruby-2.2.2/gems/jekyll-3.3.0/lib/jekyll/plugin_manager.rb:34:in require_from_bundler' from /Users/xxxxxxxx/.rvm/gems/ruby-2.2.2/gems/jekyll-3.3.0/exe/jekyll:9:in <top (required)>’ from /Users/xxxxxxxx/.rvm/gems/ruby-2.2.2/bin/jekyll:23:in load' from /Users/xxxxxxxx/.rvm/gems/ruby-2.2.2/bin/jekyll:23:in ‘ from /Users/xxxxxxxx/.rvm/gems/ruby-2.2.2/bin/ruby_executable_hooks:15:in eval' from /Users/xxxxxxxx/.rvm/gems/ruby-2.2.2/bin/ruby_executable_hooks:15:in ‘
1 2 3
原因: 没有安装 bundler ,执行安装 bundler 命令
$ gem install bundler
1 2 3 4
提示:
Fetching: bundler-1.13.5.gem (100%) Successfully installed bundler-1.13.5 Parsing documentation for bundler-1.13.5 Installing ri documentation for bundler-1.13.5 Done installing documentation for bundler after 5 seconds 1 gem installed
1 2 3
再次执行 $ jekyll server ,提示
Could not find proper version of jekyll (3.1.1) in any of the sources Run bundle install to install missing gems.
Fetching gem metadata from https://rubygems.org/……….. Fetching version metadata from https://rubygems.org/.. Fetching dependency metadata from https://rubygems.org/. 。。。 Installing jekyll-watch 1.3.1 Installing jekyll 3.1.1 Bundle complete! 3 Gemfile dependencies, 17 gems now installed. Use bundle show [gemname] to see where a bundled gem is installed.
1 2 3
bundler安装完成,后再次启动本地服务
$ jekyll server
1 2 3
继续报错
Configuration file: /Users/tendcloud-Caroline/Desktop/leopardpan.github.io/_config.yml Dependency Error: Yikes! It looks like you don’t have jekyll-sitemap or one of its dependencies installed. In order to use Jekyll as currently configured, you’ll need to install this gem. The full error message from Ruby is: ‘cannot load such file – jekyll-sitemap’ If you run into trouble, you can find helpful resources at http://jekyllrb.com/help/! jekyll 3.1.1 | Error: jekyll-sitemap