Skip to content
This repository has been archived by the owner on Feb 28, 2022. It is now read-only.

[sections] missing types of nested elements #136

Closed
kptdobe opened this issue Dec 13, 2018 · 0 comments
Closed

[sections] missing types of nested elements #136

kptdobe opened this issue Dec 13, 2018 · 0 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@kptdobe
Copy link
Contributor

kptdobe commented Dec 13, 2018

The mdast generated for a section with only one image looks like this:

{
  type: 'paragraph,
  children: [{
    type: 'image'
  }]
}

The resulting types contain only has-paragraph because the logic does not iterate through the children.
More generally, all types of elements are encapsulated inside a parent paragraph, the types property does not compute meaningful info for most of the use cases.

@kptdobe kptdobe added the enhancement New feature or request label Dec 13, 2018
@kptdobe kptdobe self-assigned this Dec 13, 2018
@trieloff trieloff added the bug Something isn't working label Dec 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants