hexo-auto-toc 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -17,7 +17,7 @@ npm install hexo-auto-toc
17
17
  ```
18
18
 
19
19
  2. The plugin will automatically parse all content within the `<article>` tag and generate a table of contents.
20
- If your article page structure does not wrap the content inside an `<article>` element, you need to add it manually — typically in the `index.html` file under your `blog` folder.
20
+ If your article page structure does not wrap the content inside an `<article>` element, contents in`<body>` will be parsed. Or you can add `<article>` manually — typically in the `index.html` file under your `blog` folder, but this is not necessary.
21
21
  3. check the effects: `hexo clean&&hexo g&&hexo s`
22
22
 
23
23
  - 使用
@@ -28,7 +28,7 @@ npm install hexo-auto-toc
28
28
  npm install hexo-auto-toc
29
29
  ```
30
30
 
31
- 2. 插件会自动对`<article>`包含下的所有内容进行解析,自动生成目录。如果你的文章页面结构中内容没被`<article>`包裹,需要自行添加它(即blog文件夹下的index.html
31
+ 2. 插件会自动对`<article>`包含下的所有内容进行解析,自动生成目录。如果你的文章页面结构中内容没被`<article>`包裹,将会解析`<body>`下的所有内容;你可以自行添加`<article>`(即blog文件夹下的index.html),但不是必须的。
32
32
  2. 查看效果 `hexo clean&&hexo g&&hexo s`
33
33
 
34
34
  - 效果 Example
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-auto-toc",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Automatically generates a responsive table of contents that fixes to the side of the article page or above the articles, depending on the user's device.",
5
5
  "keywords": [
6
6
  "toc",