You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create Post with a title that should be valid for any printable string.
Actual behavior
Failed to create post with some strings, ex: [hexo] hexo, {hexo} hexo, "hexo" hexo, and 'hexo' hexo
Error Message:
> hexo new "[hexo] hexo"
YAMLException: bad indentation of a mapping entry (1:15)
1 | title: [hexo] hexo
-------------------^
2 | date: 2022-11-29 13:16:16
3 | tags:
at generateError (./node_modules/js-yaml/lib/loader.js:183:10)
at throwError (./node_modules/js-yaml/lib/loader.js:187:9)
at readBlockMapping (./node_modules/js-yaml/lib/loader.js:1182:7)
at composeNode (./node_modules/js-yaml/lib/loader.js:1441:12)
at readDocument (./node_modules/js-yaml/lib/loader.js:1625:3)
at loadDocuments (./node_modules/js-yaml/lib/loader.js:1688:5)
at load (./node_modules/js-yaml/lib/loader.js:1714:19)
at ./node_modules/hexo/lib/hexo/post.js:282:63
at tryCatcher (./node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (./node_modules/bluebird/js/release/promise.js:547:31)
at Promise._settlePromise (./node_modules/bluebird/js/release/promise.js:604:18)
at Promise._settlePromise0 (./node_modules/bluebird/js/release/promise.js:649:10)
at Promise._settlePromises (./node_modules/bluebird/js/release/promise.js:729:18)
at Promise._fulfill (./node_modules/bluebird/js/release/promise.js:673:18)
at Promise._settlePromise (./node_modules/bluebird/js/release/promise.js:617:21)
at Promise._settlePromise0 (./node_modules/bluebird/js/release/promise.js:649:10)
at Promise._settlePromises (./node_modules/bluebird/js/release/promise.js:729:18)
at Promise._fulfill (./node_modules/bluebird/js/release/promise.js:673:18)
at ./node_modules/bluebird/js/release/nodeback.js:42:21
at ./node_modules/nunjucks/src/environment.js:41:5
at RawTask.call (./node_modules/asap/asap.js:40:19)
at flush (./node_modules/asap/raw.js:50:29)
Check List
Please check followings before submitting a new issue.
hexo version
to check)Expected behavior
Create Post with a title that should be valid for any printable string.
Actual behavior
Failed to create post with some strings, ex:
[hexo] hexo
,{hexo} hexo
,"hexo" hexo
, and'hexo' hexo
Error Message:
How to reproduce?
hexo init
hexo new "[hexo] hexo"
Is the problem still there under "Safe mode"?
Yes
Environment & Settings
Node.js & npm version(
node -v && npm -v
)Your site
_config.yml
(Optional)Hexo and Plugin version(
npm ls --depth 0
)Your package.json
package.json
Others
The text was updated successfully, but these errors were encountered: