refactor: remove alias json for support add custom language support#414
refactor: remove alias json for support add custom language support#414yoshinorin merged 8 commits intohexojs:masterfrom
Conversation
Signed-off-by: Mimi <stevenjoezhang@gmail.com>
|
The |
SukkaW
left a comment
There was a problem hiding this comment.
What about still preferring the alias, but even if the existing alias doesn't match, then use the hljs.getLanguage as a fallback? This prevents unexpected behavior changes.
You are right, I already fix it. btw: many useless commit, use squash merge. |
SukkaW
left a comment
There was a problem hiding this comment.
LGTM now. What do you think? @hexojs/core
yoshinorin
left a comment
There was a problem hiding this comment.
@yutingzhao1991
Would you please fix lint errors? Other than that, LGTM.
check list
Description
use
hljs.getLanguagefor check language support, so I can add new language support with hexo plugin.Additional information
for hexojs/hexo#5639