remarkjs / remark-directive

remark plugin to support directives
https://remark.js.org
MIT License
269 stars 17 forks source link

Custom attributes don't work. #8

Closed ivands closed 2 years ago

ivands commented 3 years ago

Initial checklist

Affected packages and versions

2.0.1

Link to runnable example

No response

Steps to reproduce

Trying to set custom attributes on the element doesn't work

data.hName = 'div';
data.hProperties = {
  id: 'something',
  className: 'something',
  class: 'something',
  src: 'something',
};

Expected behavior

<div id="something" class="something" src="something"><div>

Actual behavior

<div id="user-content-something"><div>

Runtime

Node v14

Package manager

yarn v2

OS

macOS

Build and bundle tools

Rollup

github-actions[bot] commented 3 years ago

Hi! Thanks for taking the time to contribute! This has been marked by a maintainer as needing more info. It’s not clear yet whether this is an issue. Here are a couple tips:

Thanks, — bb

wooorm commented 2 years ago

There’s not enough information provided and, when asked, you did not provide more. Perhaps you’ve already solved it. Closing as this can’t be acted on.