diff --git a/packages/docusaurus-plugin-content-blog/src/__tests__/__fixtures__/website/blog/blog-with-links.mdx b/packages/docusaurus-plugin-content-blog/src/__tests__/__fixtures__/website/blog/blog-with-links.mdx index d0d5cd77fe80d..e6d4245d3c169 100644 --- a/packages/docusaurus-plugin-content-blog/src/__tests__/__fixtures__/website/blog/blog-with-links.mdx +++ b/packages/docusaurus-plugin-content-blog/src/__tests__/__fixtures__/website/blog/blog-with-links.mdx @@ -4,7 +4,7 @@ date: 2023-07-23 --- import useBaseUrl from '@docusaurus/useBaseUrl'; -import dino from "../static/img/docusaurus.png"; +import dino from '../static/img/docusaurus.png'; [absolute full url](https://github.com/facebook/docusaurus) @@ -14,10 +14,14 @@ import dino from "../static/img/docusaurus.png"; [anchor](#title) -![](/img/docusaurus.png) +![](/img/docusaurus-social-card.png) ![](https://docusaurus.io/assets/images/slash-introducing-411a16dd05086935b8e9ddae38ae9b45.svg) - + - + diff --git a/packages/docusaurus-plugin-content-blog/src/__tests__/__fixtures__/website/blog/mdx-require-blog-post.mdx b/packages/docusaurus-plugin-content-blog/src/__tests__/__fixtures__/website/blog/mdx-require-blog-post.mdx index 5ff703b4cb3d8..fc2a147974e91 100644 --- a/packages/docusaurus-plugin-content-blog/src/__tests__/__fixtures__/website/blog/mdx-require-blog-post.mdx +++ b/packages/docusaurus-plugin-content-blog/src/__tests__/__fixtures__/website/blog/mdx-require-blog-post.mdx @@ -7,8 +7,8 @@ Test MDX with require calls import useBaseUrl from '@docusaurus/useBaseUrl'; - + - + - + diff --git a/packages/docusaurus-plugin-content-blog/src/__tests__/__fixtures__/website/build-snap/blog/blog-with-links/index.html b/packages/docusaurus-plugin-content-blog/src/__tests__/__fixtures__/website/build-snap/blog/blog-with-links/index.html index 02e2d33d8f1d4..870fdcc46775c 100644 --- a/packages/docusaurus-plugin-content-blog/src/__tests__/__fixtures__/website/build-snap/blog/blog-with-links/index.html +++ b/packages/docusaurus-plugin-content-blog/src/__tests__/__fixtures__/website/build-snap/blog/blog-with-links/index.html @@ -19,7 +19,7 @@

anchor

- - + + - \ No newline at end of file + diff --git a/packages/docusaurus-plugin-content-blog/src/__tests__/__fixtures__/website/build-snap/blog/index.html b/packages/docusaurus-plugin-content-blog/src/__tests__/__fixtures__/website/build-snap/blog/index.html index d0a8e5f812ae6..882468cad4b15 100644 --- a/packages/docusaurus-plugin-content-blog/src/__tests__/__fixtures__/website/build-snap/blog/index.html +++ b/packages/docusaurus-plugin-content-blog/src/__tests__/__fixtures__/website/build-snap/blog/index.html @@ -11,7 +11,7 @@
-
Skip to main content

· One min read

HTML Heading 1

HTML Heading 2

HTML Paragraph

Import DOM

Heading 1

Heading 2​

Heading 3​

Heading 4​

Heading 5​
  • list1
  • list2
  • list3
  • list1
  • list2
  • list3

Normal Text Italics Text Bold Text

link +

· One min read

date inside front matter

diff --git a/packages/docusaurus-plugin-content-blog/src/__tests__/__fixtures__/website/build-snap/blog/mdx-require-blog-post/index.html b/packages/docusaurus-plugin-content-blog/src/__tests__/__fixtures__/website/build-snap/blog/mdx-require-blog-post/index.html index e5a90ef53863d..a32b9250f6142 100644 --- a/packages/docusaurus-plugin-content-blog/src/__tests__/__fixtures__/website/build-snap/blog/mdx-require-blog-post/index.html +++ b/packages/docusaurus-plugin-content-blog/src/__tests__/__fixtures__/website/build-snap/blog/mdx-require-blog-post/index.html @@ -11,7 +11,7 @@
-

MDX Blog Sample with require calls

· One min read

Test MDX with require calls

+

MDX Blog Sample with require calls

· One min read

Test MDX with require calls

diff --git a/packages/docusaurus-plugin-content-blog/src/__tests__/__fixtures__/website/static/img/docusaurus-social-card.png b/packages/docusaurus-plugin-content-blog/src/__tests__/__fixtures__/website/static/img/docusaurus-social-card.png new file mode 100644 index 0000000000000..342d7cfe8f236 Binary files /dev/null and b/packages/docusaurus-plugin-content-blog/src/__tests__/__fixtures__/website/static/img/docusaurus-social-card.png differ diff --git a/packages/docusaurus-plugin-content-blog/src/__tests__/__fixtures__/website/static/img/docusaurus.png b/packages/docusaurus-plugin-content-blog/src/__tests__/__fixtures__/website/static/img/docusaurus.png deleted file mode 100644 index f458149e3c8f5..0000000000000 Binary files a/packages/docusaurus-plugin-content-blog/src/__tests__/__fixtures__/website/static/img/docusaurus.png and /dev/null differ diff --git a/packages/docusaurus-plugin-content-blog/src/__tests__/__snapshots__/feed.test.ts.snap b/packages/docusaurus-plugin-content-blog/src/__tests__/__snapshots__/feed.test.ts.snap index 6ea95793a3b97..fd954e665d398 100644 --- a/packages/docusaurus-plugin-content-blog/src/__tests__/__snapshots__/feed.test.ts.snap +++ b/packages/docusaurus-plugin-content-blog/src/__tests__/__snapshots__/feed.test.ts.snap @@ -24,8 +24,8 @@ exports[`atom filters to the first two entries 1`] = `

anchor

- -]]> + +]]> <![CDATA[MDX Blog Sample with require calls]]> @@ -33,7 +33,7 @@ exports[`atom filters to the first two entries 1`] = ` 2021-03-06T00:00:00.000Z - Test MDX with require calls

]]>
+ Test MDX with require calls

]]>
", ] @@ -45,27 +45,34 @@ exports[`atom filters to the first two entries using limit 1`] = ` https://docusaurus.io/myBaseUrl/blog Hello Blog - 2021-03-06T00:00:00.000Z + 2023-07-23T00:00:00.000Z https://github.com/jpmonette/feed Hello Blog https://docusaurus.io/myBaseUrl/image/favicon.ico Copyright + + <![CDATA[test links]]> + https://docusaurus.io/myBaseUrl/blog/blog-with-links + + 2023-07-23T00:00:00.000Z + + absolute full url

+

absolute url with implicit domain name

+

relative url

+

anchor

+

+

+ +]]>
+
<![CDATA[MDX Blog Sample with require calls]]> https://docusaurus.io/myBaseUrl/blog/mdx-require-blog-post 2021-03-06T00:00:00.000Z - Test MDX with require calls

]]>
-
- - <![CDATA[Full Blog Sample]]> - https://docusaurus.io/myBaseUrl/blog/mdx-blog-post - - 2021-03-05T00:00:00.000Z - - HTML Heading 1

HTML Heading 2

HTML Paragraph

Import DOM

Heading 1

Heading 2​

Heading 3​

Heading 4​

Heading 5​
  • list1
  • list2
  • list3
  • list1
  • list2
  • list3

Normal Text Italics Text Bold Text

linkimage

]]>
+ Test MDX with require calls

]]>
", ] @@ -95,8 +102,8 @@ exports[`atom has feed item for each post 1`] = `

anchor

- -]]> + +]]> <![CDATA[MDX Blog Sample with require calls]]> @@ -104,7 +111,7 @@ exports[`atom has feed item for each post 1`] = ` 2021-03-06T00:00:00.000Z - Test MDX with require calls

]]>
+ Test MDX with require calls

]]>
<![CDATA[Full Blog Sample]]> @@ -180,7 +187,7 @@ exports[`json filters to the first two entries 1`] = ` "items": [ { "id": "https://docusaurus.io/myBaseUrl/blog/blog-with-links", - "content_html": "

absolute full url

/n

absolute url with implicit domain name

/n

relative url

/n

anchor

/n

/n

\\"\\"

/n/n", + "content_html": "

absolute full url

/n

absolute url with implicit domain name

/n

relative url

/n

anchor

/n

/n

\\"\\"

/n/n", "url": "https://docusaurus.io/myBaseUrl/blog/blog-with-links", "title": "test links", "summary": "absolute full url", @@ -189,7 +196,7 @@ exports[`json filters to the first two entries 1`] = ` }, { "id": "https://docusaurus.io/myBaseUrl/blog/mdx-require-blog-post", - "content_html": "

Test MDX with require calls

", + "content_html": "

Test MDX with require calls

", "url": "https://docusaurus.io/myBaseUrl/blog/mdx-require-blog-post", "title": "MDX Blog Sample with require calls", "summary": "Test MDX with require calls", @@ -209,23 +216,23 @@ exports[`json filters to the first two entries using limit 1`] = ` "home_page_url": "https://docusaurus.io/myBaseUrl/blog", "description": "Hello Blog", "items": [ + { + "id": "https://docusaurus.io/myBaseUrl/blog/blog-with-links", + "content_html": "

absolute full url

/n

absolute url with implicit domain name

/n

relative url

/n

anchor

/n

/n

\\"\\"

/n/n", + "url": "https://docusaurus.io/myBaseUrl/blog/blog-with-links", + "title": "test links", + "summary": "absolute full url", + "date_modified": "2023-07-23T00:00:00.000Z", + "tags": [] + }, { "id": "https://docusaurus.io/myBaseUrl/blog/mdx-require-blog-post", - "content_html": "

Test MDX with require calls

", + "content_html": "

Test MDX with require calls

", "url": "https://docusaurus.io/myBaseUrl/blog/mdx-require-blog-post", "title": "MDX Blog Sample with require calls", "summary": "Test MDX with require calls", "date_modified": "2021-03-06T00:00:00.000Z", "tags": [] - }, - { - "id": "https://docusaurus.io/myBaseUrl/blog/mdx-blog-post", - "content_html": "

HTML Heading 1

HTML Heading 2

HTML Paragraph

Import DOM

Heading 1

Heading 2​

Heading 3​

Heading 4​

Heading 5​
  • list1
  • list2
  • list3
  • list1
  • list2
  • list3

Normal Text Italics Text Bold Text

link\\"image\\"

", - "url": "https://docusaurus.io/myBaseUrl/blog/mdx-blog-post", - "title": "Full Blog Sample", - "summary": "HTML Heading 1", - "date_modified": "2021-03-05T00:00:00.000Z", - "tags": [] } ] }", @@ -242,7 +249,7 @@ exports[`json has feed item for each post 1`] = ` "items": [ { "id": "https://docusaurus.io/myBaseUrl/blog/blog-with-links", - "content_html": "

absolute full url

/n

absolute url with implicit domain name

/n

relative url

/n

anchor

/n

/n

\\"\\"

/n/n", + "content_html": "

absolute full url

/n

absolute url with implicit domain name

/n

relative url

/n

anchor

/n

/n

\\"\\"

/n/n", "url": "https://docusaurus.io/myBaseUrl/blog/blog-with-links", "title": "test links", "summary": "absolute full url", @@ -251,7 +258,7 @@ exports[`json has feed item for each post 1`] = ` }, { "id": "https://docusaurus.io/myBaseUrl/blog/mdx-require-blog-post", - "content_html": "

Test MDX with require calls

", + "content_html": "

Test MDX with require calls

", "url": "https://docusaurus.io/myBaseUrl/blog/mdx-require-blog-post", "title": "MDX Blog Sample with require calls", "summary": "Test MDX with require calls", @@ -353,8 +360,8 @@ exports[`rss filters to the first two entries 1`] = `

anchor

- -]]> + +]]> <![CDATA[MDX Blog Sample with require calls]]> @@ -362,7 +369,7 @@ exports[`rss filters to the first two entries 1`] = ` https://docusaurus.io/myBaseUrl/blog/mdx-require-blog-post Sat, 06 Mar 2021 00:00:00 GMT - Test MDX with require calls

]]>
+ Test MDX with require calls

]]>
", @@ -377,26 +384,33 @@ exports[`rss filters to the first two entries using limit 1`] = ` Hello Blog https://docusaurus.io/myBaseUrl/blog Hello Blog - Sat, 06 Mar 2021 00:00:00 GMT + Sun, 23 Jul 2023 00:00:00 GMT https://validator.w3.org/feed/docs/rss2.html https://github.com/jpmonette/feed en Copyright + + <![CDATA[test links]]> + https://docusaurus.io/myBaseUrl/blog/blog-with-links + https://docusaurus.io/myBaseUrl/blog/blog-with-links + Sun, 23 Jul 2023 00:00:00 GMT + + absolute full url

+

absolute url with implicit domain name

+

relative url

+

anchor

+

+

+ +]]>
+
<![CDATA[MDX Blog Sample with require calls]]> https://docusaurus.io/myBaseUrl/blog/mdx-require-blog-post https://docusaurus.io/myBaseUrl/blog/mdx-require-blog-post Sat, 06 Mar 2021 00:00:00 GMT - Test MDX with require calls

]]>
-
- - <![CDATA[Full Blog Sample]]> - https://docusaurus.io/myBaseUrl/blog/mdx-blog-post - https://docusaurus.io/myBaseUrl/blog/mdx-blog-post - Fri, 05 Mar 2021 00:00:00 GMT - - HTML Heading 1

HTML Heading 2

HTML Paragraph

Import DOM

Heading 1

Heading 2​

Heading 3​

Heading 4​

Heading 5​
  • list1
  • list2
  • list3
  • list1
  • list2
  • list3

Normal Text Italics Text Bold Text

linkimage

]]>
+ Test MDX with require calls

]]>
", @@ -428,8 +442,8 @@ exports[`rss has feed item for each post 1`] = `

anchor

- -]]> + +]]> <![CDATA[MDX Blog Sample with require calls]]> @@ -437,7 +451,7 @@ exports[`rss has feed item for each post 1`] = ` https://docusaurus.io/myBaseUrl/blog/mdx-require-blog-post Sat, 06 Mar 2021 00:00:00 GMT - Test MDX with require calls

]]>
+ Test MDX with require calls

]]>
<![CDATA[Full Blog Sample]]>