diff --git a/packages/api/src/utils/parser.ts b/packages/api/src/utils/parser.ts index a1ec15678..01e97d0bd 100644 --- a/packages/api/src/utils/parser.ts +++ b/packages/api/src/utils/parser.ts @@ -262,7 +262,6 @@ export const parsePreparedContent = async ( const codeBlocks = article.dom.querySelectorAll('code') if (codeBlocks.length > 0) { codeBlocks.forEach((e) => { - console.log(e.textContent) if (e.textContent) { const att = hljs.highlightAuto(e.textContent) const code = dom.createElement('code') diff --git a/packages/readabilityjs/test/test-pages/newsletters/axios-am/expected-metadata.json b/packages/readabilityjs/test/test-pages/newsletters/axios-am/expected-metadata.json new file mode 100644 index 000000000..a78a10d05 --- /dev/null +++ b/packages/readabilityjs/test/test-pages/newsletters/axios-am/expected-metadata.json @@ -0,0 +1,11 @@ +{ + "title": "Axios Finish Line", + "byline": null, + "dir": null, + "excerpt": "Start and end your work day with the stories that matter from Axios by Mike Allen, the world’s most-wired reporter. Then finish the night with what matters -- and lasts -- in life with insights from Mike, Jim VandeHei and Erica Pandey.", + "siteName": null, + "previewImage": "https://static.axios.com/img-email/socialcard_axiosam3.jpg", + "publishedDate": null, + "language": "English", + "readerable": true +} diff --git a/packages/readabilityjs/test/test-pages/newsletters/axios-am/expected.html b/packages/readabilityjs/test/test-pages/newsletters/axios-am/expected.html new file mode 100644 index 000000000..ee1a9c900 --- /dev/null +++ b/packages/readabilityjs/test/test-pages/newsletters/axios-am/expected.html @@ -0,0 +1,227 @@ +
Good morning. Here's Axios world reporter Dave Lawler with what you need to know about today's opening of the UN General Assembly gathering in New York.
+
+ Illustration: Aïda Amer/Axios
+ +NEW YORK — The war in Ukraine is set to dominate this week's UN General Assembly meeting, overshadowing other global dilemmas like food security, climate change and other political and humanitarian crises around the world.
+Why it matters: The Biden administration is intent on keeping up the pressure on Moscow, but some developing countries and aid groups have expressed concern that diplomatic skirmishes over the war will undermine a key opportunity to address other crises that deserve attention.
+What they're saying: Stéphane Dujarric, spokesperson for Secretary-General António Guterres, said the war "does take up a lot of the space" and can make it harder to build momentum and consensus on other issues.
+Driving the news: Kicking off the six-day procession of speeches just now, Guterres called attention to the array of crises unfolding "far from the spotlight" — from Ethiopia, to Haiti, to Myanmar and beyond.
+The big picture: The UN General Assembly is back at full force for the first time in three years.
+What to watch: President Biden forfeited the prime U.S. speaking slot this morning (always second after Brazil) to travel back from Queen Elizabeth II's funeral, and will instead speak on Wednesday.
+A message from Pfizer
+People living in lower income countries are disproportionately impacted by disease, causing lasting social and economic consequences.
+Through an Accord for a Healthier World, we’re working to close the health equity gap.
+We believe better health is possible for everyone, everywhere.
+
+ Are you a fan of this email format?
+It's called Smart Brevity®. Over 300 orgs use it — in a tool called Axios HQ — to drive productivity with clearer workplace communications.
+Axios thanks our partners for supporting our newsletters. If you’re interested in advertising, learn more here.
Sponsorship has no influence on editorial content.
Follow Axios on social media:
+
+
+
|
+