Article
Long read template
Example usage
const url = await webview.article.create({
ref: 'news-item',
title: 'Hello world',
content: `Lorem ipsum dolor sit amet, consectetur adipiscing elit.`
})
Within content
, you can use Markdown to format text.
const url = await webview.article.create({
ref: 'article',
title: 'Hello world',
content: `
# Title
A simple paragraph with text
## Heading 2
- List item 1
- List item 2
- List item 3
`
})
Properties
Property | Type | Example | Description | Required |
---|---|---|---|---|
ref | string | news-article | Required unless you want | |
title | string | Select product | Descriptive titles shown in the top | Yes |
content | string | Loren ipsum dolor.... | Markdown supported content | Yes |
Updated about 1 year ago