Ghost/core/test/unit/data/meta
Nazar Gargol 16c3785b52 🐛 Fixed lack of space in excerpt generated from paragraphs
closes #10531

- Adds space when encountering closing </p> and <br> tags
- The mobiledoc-to-html conversion produces these tags in this exact
syntax, so there is no need to account for more cases like additional spaces or alternative syntax like  <br />
- Added test cases that cover spacing use-casei
- Changed some existing tests to contain more close-to-real-world markup
- The downside of this approach is generating multiple spaces in case there are empty paragraphs in the markup. The same concern is true for current "new line" substitution:
> excerpt.replace(/(\r\n|\n|\r)+/gm, ' ')
but it never has been a concern as in real world when multiple spaces are used inside of the `<p>` tag they are rendered as single space.
2019-08-26 18:05:14 +02:00
..
amp_url_spec.js Updated tests eslint config to use eslint-plugin-ghost@0.5.0 2019-08-19 13:38:35 +01:00
asset_url_spec.js Updated @tryghost/url-utils to v0.2.0 (#11004) 2019-08-12 09:31:42 +01:00
author_fb_url_spec.js Extracted frontend folder (#10780) 2019-06-19 11:30:28 +02:00
author_image_spec.js Extracted frontend folder (#10780) 2019-06-19 11:30:28 +02:00
author_url_spec.js Extracted frontend folder (#10780) 2019-06-19 11:30:28 +02:00
blog_logo_spec.js Updated tests eslint config to use eslint-plugin-ghost@0.5.0 2019-08-19 13:38:35 +01:00
canonical_url_spec.js Extracted frontend folder (#10780) 2019-06-19 11:30:28 +02:00
context_object_spec.js Extracted frontend folder (#10780) 2019-06-19 11:30:28 +02:00
cover_image_spec.js Extracted frontend folder (#10780) 2019-06-19 11:30:28 +02:00
creator_url_spec.js Extracted frontend folder (#10780) 2019-06-19 11:30:28 +02:00
description_spec.js Added unit and regression tests for canary 2019-08-09 20:46:49 +05:30
excerpt_spec.js 🐛 Fixed lack of space in excerpt generated from paragraphs 2019-08-26 18:05:14 +02:00
image-dimensions_spec.js Extracted frontend folder (#10780) 2019-06-19 11:30:28 +02:00
keywords_spec.js Extracted frontend folder (#10780) 2019-06-19 11:30:28 +02:00
modified_date_spec.js Extracted frontend folder (#10780) 2019-06-19 11:30:28 +02:00
og_image_spec.js Added global site SEO fields to be used in theme helpers (#10930) 2019-07-25 11:08:29 +02:00
og_type_spec.js Extracted frontend folder (#10780) 2019-06-19 11:30:28 +02:00
paginated_url_spec.js Updated @tryghost/url-utils to v0.2.0 (#11004) 2019-08-12 09:31:42 +01:00
published_date_spec.js Extracted frontend folder (#10780) 2019-06-19 11:30:28 +02:00
rss_url_spec.js Extracted frontend folder (#10780) 2019-06-19 11:30:28 +02:00
schema_spec.js Updated tests eslint config to use eslint-plugin-ghost@0.5.0 2019-08-19 13:38:35 +01:00
structured_data_spec.js Updated tests eslint config to use eslint-plugin-ghost@0.5.0 2019-08-19 13:38:35 +01:00
title_spec.js Added unit and regression tests for canary 2019-08-09 20:46:49 +05:30
twitter_image_spec.js Added global site SEO fields to be used in theme helpers (#10930) 2019-07-25 11:08:29 +02:00
url_spec.js Extracted frontend folder (#10780) 2019-06-19 11:30:28 +02:00