Skip to content

Commit

Permalink
Refactor code-style
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jun 27, 2023
1 parent 6ea57a7 commit 7513e41
Show file tree
Hide file tree
Showing 4 changed files with 338 additions and 256 deletions.
2 changes: 1 addition & 1 deletion dev/lib/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {matters} from '../matters.js'
* > frontmatter.
*
* @param {Options | null | undefined} [options='yaml']
* Configuration.
* Configuration (default: `'yaml'`).
* @returns {HtmlExtension}
* Extension for `micromark` that can be passed in `htmlExtensions`, to
* support frontmatter when serializing to HTML.
Expand Down
4 changes: 2 additions & 2 deletions dev/lib/syntax.js
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ function createConstruct(matter) {

/**
* @param {Matter} matter
* @param {'open' | 'close'} prop
* @param {'close' | 'open'} prop
* @returns {string}
*/
function fence(matter, prop) {
Expand All @@ -403,7 +403,7 @@ function fence(matter, prop) {

/**
* @param {Info | string} schema
* @param {'open' | 'close'} prop
* @param {'close' | 'open'} prop
* @returns {string}
*/
function pick(schema, prop) {
Expand Down
6 changes: 3 additions & 3 deletions dev/matters.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
* Sequence.
*
* Depending on how this structure is used, it reflects a marker or a fence.
* @property {string} open
* Opening.
* @property {string} close
* Closing.
* @property {string} open
* Opening.
*
* @typedef MatterProps
* Fields describing a kind of matter.
Expand Down Expand Up @@ -70,7 +70,7 @@ const markers = {yaml: '-', toml: '+'}
* Simplify one or more options.
*
* @param {Options | null | undefined} [options='yaml']
* Configuration.
* Configuration (default: `'yaml'`).
* @returns {Array<Matter>}
* List of matters.
*/
Expand Down
Loading

0 comments on commit 7513e41

Please sign in to comment.