Skip to content

documentation code blocks are not generating properly in the readme #1314

Closed

Description

@brandyscarney

Stencil version:

I'm submitting a:

[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://stencil-worldwide.herokuapp.com/ or https://forum.ionicframework.com/

Current behavior:
The generated documentation for a code block is including the *

Expected behavior:
It would show the code block without any *

Steps to reproduce:
Add the following documentation above a @Method:

/**
 * This method marks the tail the items array as dirty, so they can be re-rendered.
 *
 * It's equivalent to calling:
 *
 * ```js
 * virtualScroll.checkRange(lastItemLen);
 * ```
 */

See the README generate it as:

This method marks the tail the items array as dirty, so they can be re-rendered.

It's equivalent to calling:

```js
   * virtualScroll.checkRange(lastItemLen);
   * ```

Related code:
https://github.com/ionic-team/ionic/blob/master/core/src/components/virtual-scroll/virtual-scroll.tsx#L222-L231
https://github.com/ionic-team/ionic/tree/master/core/src/components/virtual-scroll#checkend--void

Other information:
I've confirmed this also happens above a Prop.

Activity

  1. brandyscarney commented on Apr 18, 2019

    @brandyscarney
    ContributorAuthor

    Just FYI I am removing the code examples that break our site from Ionic, but this is still a bug with the docs generation: ionic-team/ionic-framework#18075

  2. adamdbradley commented on Jan 19, 2020

    @adamdbradley
    Contributor

    Should be fixed in latest releases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions