Skip to content

Commit

Permalink
Add support for markdownDescription in generated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mkaz committed Dec 23, 2021
1 parent 6b701ed commit afb8f6c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bin/api-docs/gen-theme-reference.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,15 @@ const getSectionMarkup = ( title, data, type ) => {
type === 'settings'
? getSettingsPropertiesMarkup
: getStylePropertiesMarkup;
const description =
'markdownDescription' in data
? data.markdownDescription
: data.description;

return `
### ${ title }
${ data.description }
${ description }
${ markupFn( data ) }
---
Expand Down

0 comments on commit afb8f6c

Please sign in to comment.