如何在GitHub降价项目符号/列表上删除多余的行空间? [英] How to remove extra line space on GitHub markdown bullets/lists?

查看:88
本文介绍了如何在GitHub降价项目符号/列表上删除多余的行空间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

GitHub降价代码:

The GitHub markdown code:

1. First item
* subitem
1. Second item

FirstSecondsubitem之间生成较大的空间:

Generates a big space between the First, Second and the subitem:

如何使subitem靠近第一项,而不是恰好位于它们的中间?

How to make the subitem close to the first item, instead of exactly on the middle of them?

这是我用来说明正确输出的Photoshop:

This is a Photoshop I did to illustrate the correct output:

相关问题:

  1. 多段列表项,或者防止编号列表自动格式化
  2. Markdown:包含代码元素的编号列表段落出现问题
  1. Multi paragraph list items, OR preventing numbered list auto formatting
  2. Markdown: Problems with numbered list paragraphs containing code element

推荐答案

您需要使子列表缩进至少4个空格:

You need to indent the sublist with at least 4 spaces:

1. First item
    * subitem
2. Second item

这篇关于如何在GitHub降价项目符号/列表上删除多余的行空间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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