• article(input): ArticleMetadata
  • Creates a valid ArticleMetadata.

    Parameters

    • input: ArticleOptions

      Use your IDE suggestions for an enhanced development experience

    Returns ArticleMetadata

    Example

    const metadata = article({
    title: 'Great Question'
    content: `
    ## Heading

    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec a diam lectus. Sed sit amet ipsum mauris.

    ## Question

    What is the answer to life, the universe and everything?

    ## Answer

    42

    ![The answer](https://example.com/answer.png)
    `,
    tags: ['question', '42'],
    });