Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/webpack/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 如何在降价表中写入列表?_Html_Markdown_Github Flavored Markdown - Fatal编程技术网

Html 如何在降价表中写入列表?

Html 如何在降价表中写入列表?,html,markdown,github-flavored-markdown,Html,Markdown,Github Flavored Markdown,可以在标记表中创建列表(项目符号,编号或不编号) 表如下所示: | Tables | Are | Cool | | ------------- |:-------------:| -----:| | col 3 is | right-aligned | $1600 | | col 2 is | centered | $12 | | zebra stripes | are neat | $1 | * one *

可以在标记表中创建列表(项目符号,编号或不编号)

表如下所示:

| Tables        | Are           | Cool  |
| ------------- |:-------------:| -----:|
| col 3 is      | right-aligned | $1600 |
| col 2 is      | centered      |   $12 |
| zebra stripes | are neat      |    $1 |
* one
* two
* three
列表如下所示:

| Tables        | Are           | Cool  |
| ------------- |:-------------:| -----:|
| col 3 is      | right-aligned | $1600 |
| col 2 is      | centered      |   $12 |
| zebra stripes | are neat      |    $1 |
* one
* two
* three

我可以合并它们吗?

我不知道,因为我知道的所有降价参考都提到:

单元格内容只能在一行上

你可以试一下(这个例子和你在问题中提到的一样,所以你可能已经知道了)

潘多克 如果您正在使用(该扩展基于),则可以使用:

或者


是的,您可以使用HTML合并它们。当我从Github在
.md
文件中创建表时,我总是喜欢使用HTML代码而不是标记

支持
.md
文件中的基本HTML。这就是答案:

标记与HTML混合:

| Tables        | Are           | Cool  |
| ------------- |:-------------:| -----:|
| col 3 is      | right-aligned | $1600 |
| col 2 is      | centered      |   $12 |
| zebra stripes | are neat      |    $1 |
| <ul><li>item1</li><li>item2</li></ul>| See the list | from the first column|
|表格|很酷|
| ------------- |:-------------:| -----:|
|第3列为“右对齐”| 1600美元|
|第2列为|居中| 12美元|
|斑马条纹很整齐| 1美元|
|
  • 项目1
  • 项目2
|见第一列的列表||
或纯HTML:

<table>
  <tbody>
    <tr>
      <th>Tables</th>
      <th align="center">Are</th>
      <th align="right">Cool</th>
    </tr>
    <tr>
      <td>col 3 is</td>
      <td align="center">right-aligned</td>
      <td align="right">$1600</td>
    </tr>
    <tr>
      <td>col 2 is</td>
      <td align="center">centered</td>
      <td align="right">$12</td>
    </tr>
    <tr>
      <td>zebra stripes</td>
      <td align="center">are neat</td>
      <td align="right">$1</td>
    </tr>
    <tr>
      <td>
        <ul>
          <li>item1</li>
          <li>item2</li>
        </ul>
      </td>
      <td align="center">See the list</td>
      <td align="right">from the first column</td>
    </tr>
  </tbody>
</table>

桌子
是
酷
第三列是
右对齐
$1600
第2列是
居中的
$12
斑马条纹
整洁
$1
  • 项目1
  • 项目2
见清单 从第一列开始
这是Github上的外观:


如果希望单元格中有无项目符号列表(或任何其他非标准用法)或多行,请使用

| Event         | Platform      | Description |
| ------------- |-----------| -----:|
| `message_received`| `facebook-messenger`<br/>`skype`|
|事件|平台|说明|
| ------------- |-----------| -----:|
|`message_已收到`facebook messenger`
`skype`|
我最近实现的另一种方法是使用

这将从一组受保护的div(markdown实现中的标准)创建一个表,其布局与html类似:

---
panflute-filters: [div-table]
panflute-path: 'panflute/docs/source'
---

::::: {.divtable}
:::: {.tcaption}
a caption here (optional), only the first paragraph is used.
::::
:::: {.thead}
[Header 1]{width=0.4 align=center}
[Header 2]{width=0.6 align=default}
::::
:::: {.trow}
::: {.tcell}

1. any
2. normal markdown
3. can go in a cell

:::
::: {.tcell}
![](https://pixabay.com/get/e832b60e2cf7043ed1584d05fb0938c9bd22ffd41cb2144894f9c57aae/bird-1771435_1280.png?attachment){width=50%}

some text
:::
::::
:::: {.trow bypara=true}
If bypara=true

Then each paragraph will be treated as a separate column
::::
any text outside a div will be ignored
:::::
看起来像:


如果您使用html方法:

不要添加空行

像这样:

<table>
    <tbody>

        <tr>
            <td>1</td>
            <td>2</td>
        </tr>

        <tr>
            <td>1</td>
            <td>2</td>
        </tr>

    </tbody>
</table>

1.
2.
1.
2.
标记将中断

删除空行:

<table>
    <tbody>
        <tr>
            <td>1</td>
            <td>2</td>
        </tr>
        <tr>
            <td>1</td>
            <td>2</td>
        </tr>
    </tbody>
</table>

1.
2.
1.
2.

另一种解决方案,您可以将

标记添加到表中

    |Method name| Behavior |
    |--|--|
    | OnAwakeLogicController(); | Its called when MainLogicController is loaded into the memory , its also hold the following actions :- <br> 1. Checking Audio Settings <br>2. Initializing Level Controller|
|方法名称|行为|
|--|--|
|OnAwakeLogicController();|当MainLogicController加载到内存中时调用它,它还包含以下操作:-
1。检查音频设置
2。初始化电平控制器|

降价表生成器错误,因为它接受的新行(如您所引用)不被接受。但感谢您提供的宝贵信息。@GabrielPetrovay降价表生成器是一项相对较新的服务,我并不感到惊讶;)但是关于“GitHub风格的降价”,我的答案是正确的。我倾向于接受你的答案。但我再等1-2天,也许有人会发布一个黑客(如果答案被接受,除了其他有同样问题的人外,没有人会看它)@GabrielPetrovay我同意。您还可以联系GitHub支持人员,看看他们对此有何评论。(然后更新我的答案或发布你自己的答案)@イオニカビザウ 我显然没有提到HTML。使用HTML,您可以重新创建任何降价功能,因此它不是有效的解决方案。问题是关于降价,而不是HTML。这很好,但是有没有什么方法可以设计列表的样式呢?删除项目符号、边距等。?例如,Github似乎不接受
ul
元素上的
style=“list style:none”
标记。@TreborRude不,因为标记实际上不是HTML。但是,如果你使用一个库(例如),你可能有这个功能(将HTML与标记结合起来)。没关系,我发现一个嵌入了

标记的
标记。我很高兴确认第一个(嵌入式
  • foo
)也可以在Bitbucket服务器上工作。可能是因为三年前它是唯一合理的答案?我同意你的看法,今天这是一个更好的答案。这是对问题的回答,而不是关于问题的回答lists@Bergi我对你的建议投了赞成票谷歌搜索让我想到了这个问题,这就是我需要的解决方案。我认为它是可以忍受的(例如,非项目符号列表),所以我把它放在这里<代码>facebook messenger

&bull
skype
markdown lint将此标记为HTML将忽略空行和多个空格,因此我看不出有任何问题。你能解释一下什么会在这里破裂吗?