From bfb7e50c0d55daa08542dcc3bf7adb9576c7e4f2 Mon Sep 17 00:00:00 2001 From: D-Sketon <2055272094@qq.com> Date: Thu, 19 Oct 2023 01:13:49 +0800 Subject: [PATCH] docs: fix grammatical error (#2080) --- source/api/helper.md | 2 +- source/api/rendering.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/api/helper.md b/source/api/helper.md index 45c88a1615..104762b9cd 100644 --- a/source/api/helper.md +++ b/source/api/helper.md @@ -42,7 +42,7 @@ hexo.extend.helper.register('lorem', function(path) { }); ``` -### How do I use a registered helper in another extension (e.g. Filter, Injector, etc)? +### How do I use a registered helper in another extension (e.g. Filter, Injector)? `hexo.extend.helper.get` will return the helper function, but it needs to have hexo as its context, so: diff --git a/source/api/rendering.md b/source/api/rendering.md index 700dcb14f1..64d87644b3 100644 --- a/source/api/rendering.md +++ b/source/api/rendering.md @@ -70,7 +70,7 @@ If you are not using a [tag plugin](/docs/tag-plugins) and want to use `{{ }}` o ``` js // following example only applies to '.md' file extension -// you may need to cover other extensions, e.g. '.markdown', '.mkd', etc +// you may need to cover other extensions, e.g. '.markdown', '.mkd' const renderer = hexo.render.renderer.get('md') if (renderer) { renderer.disableNunjucks = true