-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
async support #896
Comments
the ajax returned data like this: {
title: '天王盖地虎,宝塔震河妖',
image: '//content.image.alimmdn.com/sku/1463573933Q3cRJL_jpg.jpeg',
price: '¥250'
} convert the data to html: <div class="sku-card">
<h1 class="sku-title">天王盖地虎,宝塔震河妖</h1>
<img src="//content.image.alimmdn.com/sku/1463573933Q3cRJL_jpg.jpeg">
<span class="sku-price">¥250</span>
</div> |
You should override the code renderer in such a way that whenever |
Alternatively, you should be able to do it after the build. Seems like we are trying to make Markdown (and Marked) do more than it was intented to - convert Markdown to HTML based on specifications.
Might be more reasonable to do something like:
Once the HTML is rendered, run the JS selector for
You shouldn't need the extra classes because the wrapper says what you're playing with. If you use those components outside of the sku-card, then by all means continue using the classes or faux object inheritance. Closing. |
I define a special markdown syntax for our editor
the syntas like this:
```sku
1120
```
the number is a id, I should fetch data by ajax (http://x.x.x.x/?id=1120), and then i will convert the data to html , but marked not support async
What should I do?
I think this solution is pretty good #798
Relevant issues: #458
thanks for any reply !
The text was updated successfully, but these errors were encountered: