fix(v2): hide read more button on non-truncated posts (#2240)

* fix(v2): hide read more button on non-truncated posts

* Update tests
This commit is contained in:
Alexey Pyltsyn 2020-01-24 08:31:07 +03:00 committed by Yangshun Tay
parent 894dbcff49
commit 5121ac013c
6 changed files with 12 additions and 7 deletions

View file

@ -41,7 +41,7 @@ const DEFAULT_OPTIONS: PluginOptions = {
blogTagsPostsComponent: '@theme/BlogTagsPostsPage',
remarkPlugins: [],
rehypePlugins: [],
truncateMarker: /<!--\s*(truncate)\s*-->/, // string or regex
truncateMarker: /<!--\s*(truncate)\s*-->/, // Regex
};
function assertFeedTypes(val: any): asserts val is FeedType {