如何在GitHub上的MD markdown自述文件中添加空格? [英] How to add empty spaces into MD markdown readme on GitHub?

查看:243
本文介绍了如何在GitHub上的MD markdown自述文件中添加空格?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在努力在字符串开始生成我的GitHub README.md 之前添加空格.看起来像这样:

I'm struggling to add empty spaces before the string starts to make my GitHub README.md looks something like this:

现在看起来像这样:

我尝试添加<br />标记来修复新的字符串开始,现在可以了,但是我不理解如何在字符串开始之前添加空格而不将所有内容更改为&nbsp;.也许有一种更优雅的格式化方式?

I tried adding <br /> tag to fix the new string start, now it works, but I don't understand how to add spaces before the string starts without changing everything to &nbsp;. Maybe there's a more elegant way to format it?

推荐答案

您可以使用Unicode em空间(在UTF-8中为8195),而不是使用&nbsp;&emsp;之类的HTML实体(如其他建议) ) 直接地.尝试将以下内容复制粘贴到您的README.md中.行首的空格是em空格.

Instead of using HTML entities like &nbsp; and &emsp; (as others have suggested), you can use the Unicode em space (8195 in UTF-8) directly. Try copy-pasting the following into your README.md. The spaces at the start of the lines are em spaces.

The action of every agent <br />
  into the world <br />
starts <br />
  from their physical selves. <br />

这篇关于如何在GitHub上的MD markdown自述文件中添加空格?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆