Natalie Tay
489aac3fdd
FIX: Disallow table cells to be weighted actual articles can be main content ( #27508 )
...
For Topic Embeds, we would prefer <article> to be the main article in a topic, rather than a table cell <td> with potentially a lot of data. However, in an example URL like here, the table cell (the very large code snippet) is seen as the Topic Embed's article due to the determined content weight by the Readability library we use.
In the newly released 0.7.1 cantino/ruby-readability#94 , the library has a new option to exclude the library's default <td> element into content weighting. This is more in line with the original library where they only weighted <p>. So this PR excludes the td, as seen in the tests, to allow the actual article to be seen as the article. This PR also adds the details tag into the allow-list.
2024-06-19 09:50:49 +08:00
..
2024-05-30 10:44:53 -05:00
2024-06-18 23:48:30 +02:00
2024-05-23 09:29:08 +08:00
2024-01-10 19:30:10 -07:00
2023-11-09 16:47:59 -06:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2024-03-26 11:32:01 +01:00
2023-06-01 10:00:01 +10:00
2023-01-09 11:49:28 +00:00
2023-11-09 16:47:59 -06:00
2023-12-13 14:50:13 +11:00
2023-01-09 11:49:28 +00:00
2024-03-21 21:39:14 +02:00
2023-03-10 13:45:01 +08:00
2024-06-14 11:37:32 -05:00
2023-11-09 16:47:59 -06:00
2023-11-09 16:47:59 -06:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2024-05-27 16:35:42 +02:00
2022-07-28 10:27:38 +08:00
2023-01-09 11:49:28 +00:00
2024-03-01 10:07:35 +10:00
2024-03-11 15:19:37 +05:30
2023-11-09 16:47:59 -06:00
2023-11-09 16:47:59 -06:00
2024-05-06 14:08:10 +08:00
2023-01-09 11:49:28 +00:00
2023-11-09 16:47:59 -06:00
2023-01-09 11:49:28 +00:00
2023-11-09 16:47:59 -06:00
2024-05-16 15:47:01 -04:00
2023-12-04 13:45:19 +01:00
2024-06-06 15:45:30 +10:00
2024-03-26 11:32:01 +01:00
2023-11-09 16:47:59 -06:00
2023-01-09 11:49:28 +00:00
2024-01-25 14:28:26 +08:00
2022-07-28 10:27:38 +08:00
2023-11-09 16:47:59 -06:00
2023-05-24 09:57:46 +02:00
2024-03-26 11:41:12 +08:00
2024-03-04 09:30:30 +11:00
2023-11-09 16:47:59 -06:00
2024-05-24 22:15:53 +08:00
2024-03-27 09:12:14 -04:00
2023-11-09 16:47:59 -06:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2024-03-06 16:52:19 +08:00
2023-01-09 11:49:28 +00:00
2024-06-03 13:20:24 +02:00
2023-01-09 11:49:28 +00:00
2024-04-29 10:34:46 +10:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2022-07-28 10:27:38 +08:00
2024-03-26 11:41:12 +08:00
2023-01-09 11:49:28 +00:00
2023-11-09 16:47:59 -06:00
2023-01-09 11:49:28 +00:00
2024-05-23 15:15:16 +10:00
2023-11-08 23:13:25 +04:00
2024-04-19 18:10:50 +10:00
2024-03-18 18:05:46 +01:00
2024-05-23 09:29:08 +08:00
2023-11-09 16:47:59 -06:00
2023-08-01 00:48:40 +02:00
2024-02-01 10:26:56 +08:00
2024-03-01 10:07:35 +10:00
2023-01-09 11:49:28 +00:00
2024-05-23 11:21:42 -07:00
2023-12-13 17:18:42 +08:00
2023-11-09 16:47:59 -06:00
2024-01-26 13:25:03 +08:00
2024-01-29 17:52:02 +08:00
2024-06-18 15:49:58 +10:00
2023-12-04 12:44:32 -03:00
2023-01-09 11:49:28 +00:00
2023-06-26 11:41:52 +02:00
2023-08-17 12:33:52 +10:00
2023-06-26 11:41:52 +02:00
2023-11-09 16:47:59 -06:00
2023-11-09 16:47:59 -06:00
2023-12-18 11:48:25 +10:00
2023-08-17 14:46:24 +10:00
2024-03-18 08:50:39 +10:00
2024-05-06 11:55:20 -05:00
2024-03-26 11:32:01 +01:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-11-09 16:47:59 -06:00
2024-01-26 13:25:03 +08:00
2024-01-26 13:25:03 +08:00
2024-04-04 12:01:31 +08:00
2023-01-09 11:49:28 +00:00
2024-06-12 11:11:02 +02:00
2023-11-02 08:10:15 +03:00
2024-05-03 06:29:18 +08:00
2023-11-09 16:47:59 -06:00
2023-01-09 11:49:28 +00:00
2023-11-09 16:47:59 -06:00
2022-07-28 10:27:38 +08:00
2023-11-09 16:47:59 -06:00
2024-06-19 09:50:49 +08:00
2023-01-09 11:49:28 +00:00
2023-11-09 16:47:59 -06:00
2024-03-01 10:07:35 +10:00
2023-01-09 11:49:28 +00:00
2024-01-18 14:08:40 +08:00
2024-01-30 17:03:58 +11:00
2023-11-09 16:47:59 -06:00
2023-05-31 19:32:06 +05:30
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2024-05-17 17:05:49 +02:00
2023-11-09 16:47:59 -06:00
2023-06-13 22:02:21 +02:00
2023-11-09 16:47:59 -06:00
2024-03-15 12:08:37 -04:00
2024-04-19 18:10:50 +10:00
2024-05-27 15:25:32 +10:00
2024-05-24 22:15:53 +08:00
2024-05-23 12:19:07 +10:00
2023-01-09 11:49:28 +00:00
2024-01-03 12:32:26 +01:00
2023-11-09 16:47:59 -06:00
2023-11-09 16:47:59 -06:00
2024-05-30 08:37:38 +08:00
2024-03-18 18:05:46 +01:00
2023-01-09 11:49:28 +00:00
2023-11-09 16:47:59 -06:00
2022-07-28 10:27:38 +08:00
2023-11-09 16:47:59 -06:00
2023-11-09 16:47:59 -06:00
2023-11-09 16:47:59 -06:00
2023-11-09 16:47:59 -06:00
2023-11-09 16:47:59 -06:00
2023-11-09 16:47:59 -06:00
2024-05-23 19:18:25 +08:00
2023-11-09 16:47:59 -06:00
2023-11-09 16:47:59 -06:00
2023-11-09 16:47:59 -06:00
2024-06-04 15:42:53 +08:00
2023-11-09 16:47:59 -06:00
2023-11-09 16:47:59 -06:00
2024-03-04 15:08:35 +01:00
2023-11-09 16:47:59 -06:00
2023-11-09 16:47:59 -06:00
2024-06-18 23:48:30 +02:00
2023-11-09 16:47:59 -06:00
2023-11-09 16:47:59 -06:00
2024-04-03 14:20:54 -06:00
2023-11-09 16:47:59 -06:00
2024-04-04 15:02:09 +02:00
2024-04-29 15:50:55 +05:30
2023-01-09 11:49:28 +00:00
2023-05-06 07:15:33 +10:00
2023-01-09 11:49:28 +00:00
2024-03-05 12:47:04 +11:00
2023-12-13 14:50:13 +11:00