niudai / VSCode-Zhihu

Zhihu extension built on vscode.
MIT License
849 stars 74 forks source link

[FeatureRequest]文献引用. myst compatibility #142

Open shouldsee opened 2 years ago

shouldsee commented 2 years ago

我在静态站里才用了 myst+sphinxcontrib-bibtex的引用directive,显然知乎不可能直接渲染这玩意.有没有可能增加一些基于myst语法的简单渲染,再上传到zhihu?感觉jupyterbook是比较有前景的文档形式.

{footcite:t}`deng2020-resebm`
@article{
deng2020-resebm,
  doi = {10.48550/ARXIV.2004.11714},
  url = {https://arxiv.org/abs/2004.11714},
  author = {Deng, Yuntian and Bakhtin, Anton and Ott, Myle and Szlam, Arthur and Ranzato, Marc'Aurelio},
  keywords = {Computation and Language (cs.CL), Machine Learning (cs.LG), FOS: Computer and information sciences, FOS: Computer and information sciences},
  title = {Residual Energy-Based Models for Text Generation},
  publisher = {arXiv},
  journal = {arXiv},
  year = {2020},
  copyright = {arXiv.org perpetual, non-exclusive license}
}

https://sphinxcontrib-bibtex.readthedocs.io/en/latest/usage.html#section-local-bibliographies

L-M-Sherlock commented 2 years ago

我觉得能把知乎原生的参考资料引用加上就阿弥陀佛了

shouldsee commented 2 years ago

我觉得能把知乎原生的参考资料引用加上就阿弥陀佛了

是,知乎的参考到底是怎么实现的啊?

L-M-Sherlock commented 2 years ago

我觉得能把知乎原生的参考资料引用加上就阿弥陀佛了

是,知乎的参考到底是怎么实现的啊?

没事了,我找到有人实现了:https://github.com/jks-liu/WPL-s