Closed Dragon1573 closed 6 months ago
Rewrite the table with HTML syntax directly.
- 问题:请使用 *Prophet* 对 `train_df` 数据建模,预测后 30 天的结果。并回答 1 月 20 日当天的预测结果是多少?
> ```python
> from fbprophet import Prophet
>
> model = Prophet()
> model.fit(train_df)
> pred_df = model.make_future_dataframe(periods=30, freq='D', include_history=False)
> pred_df = model.predict(pred_df)
> pred_df[['ds', 'yhat']]
> ```
>
> 通过以上的建模预测,我们可以得到如下表格:
>
> <table style="text-align: center;">
> <thead>
> <tr><th>ds</th><th>yhat</th></tr>
> </thead>
> <tbody>
> <tr><td>2015-12-22</td><td>3385.507108</td></tr>
> <tr><td>......</td><td>......</td></tr>
> <tr><td>2016-01-20</td><td>3426.449686</td></tr>
> </tbody>
> </table>
>
> 因此,1月20日当天的预测结果约为3426次。
Can't reproduce. it works as expected.
I didn't find hexo-renderer-marked
, hexo-renderer-markdown-it
, hexo-renderer-pandoc
in your package.json
. Maybe you are using another markdown renderer, then the problem is probably caused by your markdown renderer. This is not a problem with hexo
I've changed my package.json
to hexo-renderer-markdown-it
. Unable to reproduce either. Seems this is caused by hexo-renderer-kramed
.
Thanks for your help ❤️
package.json
Check List
hexo version
to check)Expected behavior
When there's a table in a quote, the table should be rendered as normal.
GitHub
- 问题:请使用 *Prophet* 对 `train_df` 数据建模,预测后 30 天的结果。并回答 1 月 20 日当天的预测结果是多少? > ```python > from fbprophet import Prophet > > model = Prophet() > model.fit(train_df) > pred_df = model.make_future_dataframe(periods=30, freq='D', include_history=False) > pred_df = model.predict(pred_df) > pred_df[['ds', 'yhat']] > ``` > > 通过以上的建模预测,我们可以得到如下表格: > > | ds | yhat | > |:----------:|:-----------:| > | 2015-12-22 | 3385.507108 | > | ...... | ...... | > | 2016-01-20 | 3426.449686 | > > 因此,1月20日当天的预测结果约为3426次。Typora
![image](https://github.com/hexojs/hexo/assets/49941141/73884e9d-1e0d-4bd3-9bc4-96107c0cd3bf)Vuepress (with theme Vdoing)
![image](https://github.com/hexojs/hexo/assets/49941141/4541d824-9068-48d1-9978-c6f386befbce)Actual behavior
The table did not render as expected.
Hexo (with theme Butterfly)
![image](https://github.com/hexojs/hexo/assets/49941141/6ef3edfc-5d40-45bd-9c39-0fa2fc880b32)How to reproduce?
yarn dlx hexo init
.yarn set version berry && yarn set version latest
.hexo-theme-butterfly
and switch to this theme in_config.yml
.public/
folder with any web server, visit the post. You may reproduce this issue.Is the problem still there under
Safe mode
?Nope. Hexo will not compile my posts under "Safe mode".
Your Node.js & npm version
Your Hexo and Plugin version
Your
package.json
Your site's
_config.yml
(Optional)Others
No response