I am learning to use hexo to bolg. When I finish my job and deploy it.I find that all "--" turn into "-".What is the reason and how can I fix it.
Why “--” turns into "-" when I deploy my markdown file using Hexo?
56 views Asked by yan liang At
1
--
) generate into long dashes (&mdash
or—
) is because in hexo-renderer-marked plugin option smartypants (Use "smart" typograhic punctuation for things like quotes and dashes) is enabled by default.To disable it add in main Hexo
_config.yml
:After that need to update text in your
*.md
file to regenerate output with new parameters by this plugin. Of course,hexo clean && hexo g
or reloadhexo s
after that.