Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[v2]tag style must be object even though file extension is .md #3570

Closed
huntye1 opened this issue Oct 10, 2020 · 1 comment
Closed

[v2]tag style must be object even though file extension is .md #3570

huntye1 opened this issue Oct 10, 2020 · 1 comment
Labels
closed: duplicate This issue or pull request already exists in another issue or pull request

Comments

@huntye1
Copy link

huntye1 commented Oct 10, 2020

I write my doc file in Typora that can custom tags style by inline style. like this:

<img src="https://raw.githubusercontent.com/huntye1/gallery/master/image-20201010160924980.png" alt="this is a pic" style="zoom:50%;margin:auto" />

but when i run my site, I got an Error Error: Thestyle prop expects a mapping from style properties to values, not a string.

I read the doc said that I must change my inline style syntax into object style that using in jsx.

Is there some way to config this action or disable it in .md extension file ?

@huntye1 huntye1 added status: needs triage This issue has not been triaged by maintainers closed: question This issue is a user error/misunderstanding. labels Oct 10, 2020
@slorber
Copy link
Collaborator

slorber commented Oct 12, 2020

Hi @huntye1 , this JSX object syntax is required by the MDX parser that we currently use in v2.

There's already an issue about the current parser limitations regarding compatibility with existing MD ecosystem, so I'm closing this one.

#3018

@slorber slorber closed this as completed Oct 12, 2020
@Josh-Cena Josh-Cena added closed: duplicate This issue or pull request already exists in another issue or pull request and removed status: needs triage This issue has not been triaged by maintainers closed: question This issue is a user error/misunderstanding. labels Mar 22, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
closed: duplicate This issue or pull request already exists in another issue or pull request
Projects
None yet
Development

No branches or pull requests

3 participants