Skip to content

Commit

Permalink
Change html_content to content_html
Browse files Browse the repository at this point in the history
Per the specification https://jsonfeed.org/version/1
  • Loading branch information
leereamsnyder authored and jpmonette committed Dec 16, 2018
1 parent eb08b96 commit c4666db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/__tests__/__snapshots__/json.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ exports[`json 1 should generate a valid feed 1`] = `
\\"items\\": [
{
\\"id\\": \\"https://example.com/hello-world\\",
\\"html_content\\": \\"Content of my item\\",
\\"content_html\\": \\"Content of my item\\",
\\"url\\": \\"https://example.com/hello-world\\",
\\"title\\": \\"Hello World\\",
\\"summary\\": \\"This is an article about Hello World.\\",
Expand Down
2 changes: 1 addition & 1 deletion src/json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default (ins: Feed) => {
id: item.id,
// json_feed distinguishes between html and text content
// but since we only take a single type, we'll assume HTML
html_content: item.content
content_html: item.content
};
if (item.link) {
feedItem.url = item.link;
Expand Down

0 comments on commit c4666db

Please sign in to comment.