syntax-tree / mdast-util-directive

mdast extension to parse and serialize generic directives (`:cite[smith04]`)
https://unifiedjs.com
MIT License
12 stars 6 forks source link

cant parse into containerDirective #5

Closed mumu1993 closed 1 year ago

mumu1993 commented 1 year ago

Initial checklist

Affected packages and versions

mdast-util-directive@2.2.2 micromark-extension-directive@2.1.1

Link to runnable example

No response

Steps to reproduce

string like this :::tip Note\nWhen you select Vulkan as Graphics APIs, the Unity Editor version should be 2020.3.13 or later.\n::: cant parse into containerDirective

but when i delete the first space like this

:::tipNote\nWhen you select Vulkan as Graphics APIs, the Unity Editor version should be 2020.3.13 or later.\n::: this can parse into containerDirective

Expected behavior

:::tip Note\nWhen you select Vulkan as Graphics APIs, the Unity Editor version should be 2020.3.13 or later.\n::: this string can be parsed into containerDirective

Actual behavior

:::tip Note\nWhen you select Vulkan as Graphics APIs, the Unity Editor version should be 2020.3.13 or later.\n::: this string cant parsed into containerDirective

Affected runtime and version

mdast-util-directive@2.2.2 micromark-extension-directive@2.1.1

Affected package manager and version

No response

Affected OS and version

No response

Build and bundle tools

No response

wooorm commented 1 year ago

Please use markdown code to show your code, I can’t read this

wooorm commented 1 year ago

Closing due to no response, I don’t know what you mean.