https://github.com/geut/nextein-plugin-title-chicago-style
A Nextein plugin that applies Chicago Style to Titles (via title)
https://github.com/geut/nextein-plugin-title-chicago-style
chicago-manual-of-style nextein plugin title
Last synced: 10 days ago
JSON representation
A Nextein plugin that applies Chicago Style to Titles (via title)
- Host: GitHub
- URL: https://github.com/geut/nextein-plugin-title-chicago-style
- Owner: geut
- Created: 2019-09-13T18:35:07.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-04-06T12:42:10.000Z (about 6 years ago)
- Last Synced: 2025-10-24T09:43:53.258Z (8 months ago)
- Topics: chicago-manual-of-style, nextein, plugin, title
- Language: JavaScript
- Homepage:
- Size: 11.7 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nextein-plugin-title-chicago-style
A Nextein plugin that applies Chicago Style to Titles (via title)
## Install
```
npm i @geut/nextein-plugin-title-chicago-style
```
## Usage
Edit your `next.config.js` file and add it to the plugins list:
```js
// next.config.js
const { withNextein } = require('nextein/config')
module.exports = withNextein({
nextein: function(config) {
config.plugins.push({
name: '@geut/nextein-plugin-title-chicago-style',
options: {
special: [
/* List your special words here */
'GEUT'
]
}
})
return config
},
// ...
}))
```
## Configuration
The `options` object can define the following properties:
- special: `{Array}. Default: []` A set of words to be capitalized in a special way.
- frontMatter: `{Array}. Default: ['title']`. Fields from front matter that will be processed.
- maxDepht: `{Number}. Default: 6`. The maximum depht for heading elements. `6` means `h6`.