简体   繁体   English

Markdown中有没有办法为HTML符号或LaTeX命令创建别名?

[英]Is there a way in Markdown for creating aliases for HTML symbols or LaTeX commands?

Is it possible to create an alias in Markdown in such a way that I could write --> and it would display → as it it was written ◗ 是否有可能在Markdown中创建一个别名,我可以这样写-->它会显示→就像它写的那样◗ for HTML right arrow or $\\rightarrow$ for LaTeX right arrow? 用于HTML右箭头或$\\rightarrow$用于LaTeX右箭头?
Thanks! 谢谢!

I am using Markdown in Jupyter notebook, although it does not implement nice features like the GitHub Flavored Markdown. 我在Jupyter笔记本中使用Markdown,虽然它没有实现像GitHub Flavored Markdown这样的好功能。

I don't think there's anything specifically in Markdown or Jupyter for dong this, but your operating system might be able to help you insert Unicode characters. 我不认为Markdown或Jupyter中有任何具体的东西,但是你的操作系统可能能够帮助你插入Unicode字符。 For example, on my Linux machine I have a compose key configured. 例如,在我的Linux机器上,我配置了一个compose键 If I press Compose - > (pressing and releasing each key one at a time) I get "→". 如果我按下Compose - > (一次按下并释放每个键),我会得到“→”。

Your operating system might offer a different approach. 您的操作系统可能提供不同的方法。 For example, on Windows you can use alt codes to enter some special characters. 例如,在Windows上,您可以使用alt代码输入一些特殊字符。 I think Alt + Numpad 2 followed by Alt + Numpad 6 will insert a → character. 我认为Alt + Numpad 2后跟Alt + Numpad 6会插入一个→字符。

One big benefit of this approach is that you can use it in all applications, not just one. 这种方法的一大好处是,您可以在所有应用程序中使用它,而不仅仅是一个。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM