diplodoc-platform / diplodoc-platform/transform
Runtime error with tabs markup
- Dominant language
- TypeScript
- Stars
- 69
- Forks
- 59
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 6
Description
### Package version
_No response_
### Node version
_No response_
### Platform
_No response_
### What steps will reproduce the bug?
Go to diplodoc playground: https://diplodoc-platform.github.io/playground/
Paste this markup:
```md
{% list tabs %}
- tab1
{% endlist %}
{% endlist %}
```
[Example](https://diplodoc-platform.github.io/playground/?mode=preview&input=%257B%2525%2520list%2520tabs%2520%2525%257D%250A%250A%2520%2520-%2520tab1%250A%250A%2520%2520%2520%2520%257B%2525%2520endlist%2520%2525%257D%250A%250A%257B%2525%2520endlist%2520%2525%257D%250A)
### What is the expected behavior?
md-markup will be rendered in HTML
### What do you see instead?
Runtime error
```
TypeError: token.attrPush is not a function
at exports6.addAttrs (utils.js:126:13)
at Object.transform (patterns.js:206:15)
at Array.curlyAttrs (index.js:30:19)
at Core.process (parser_core.js:54:12)
at MarkdownIt3.parse (index.js:524:13)
at md.ts:133:25
at transform3 (index.ts:42:35)
at generateHTML (generators.ts:59:12)
```
### Additional information
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.