0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00
ghost/core
Kevin Ansfield 75ae3f8736 Added parsing of html cards when using ?source=html with the v2 Admin API
no issue

- when sending `html` with `?source=html` to the v2 Admin API it's now possible to include blocks of HTML that will be extracted to html cards rather than going through the normal lossy html-to-mobiledoc conversion

Example usage would be sending HTML in the following format:

```html
<p>Some standard content...</p>

<!--kg-card-begin: html-->
<div class="my-custom-html">...</div>
<!--kg-card-end: html-->

<p>Some more content...</p>
```

In this case an html card will be created in the mobiledoc with the content `<div class="my-custom-html">...</div>`.
2019-05-04 11:30:59 +01:00
..
client@9ff217a0e8 Updated Ghost-Admin to 2.21.1 2019-04-30 11:10:02 +02:00
server Added temp file cleanup for invalid themes 2019-05-02 17:59:29 +02:00
test Added parsing of html cards when using ?source=html with the v2 Admin API 2019-05-04 11:30:59 +01:00
index.js