junxnone / xwiki

https://junxnone.github.io/xwiki/
0 stars 0 forks source link

Doc Markdown Table #138

Open junxnone opened 3 years ago

junxnone commented 3 years ago

表格

基本格式

T1 | T2 | T3
-- | -- | --
C1 | C2 | C3
T1 T2 T3
C1 C2 C3

table 中忽略 | 使用 \|

单行 Table

T1 | T2 | T3
-- | -- | --
T1 T2 T3

单列 Table

T1 |
-- |
T2 |
T3 |
T1
T2
T3

Table with Checklist

T1 | T2 | T3
-- | -- | --
C1 | C2 | C3
C4 | <ul><li>- [ ] Task 1</li></ul> |<ul><li>- [ ] Task 2</li></ul>
T1 T2 T3
C1 C2 C3
C4
  • - [ ] Task 1
  • - [ ] Task 2

Table list 添加缩进

T1 | T2 | T3
-- | -- | --
C1 | C2 | C3
C4 |   |<ul><li>[ ] Task 2<ul><li> Task 2.1</li></ul></li></ul>
T1 T2 T3
C1 C2 C3
C4
  • [ ] Task 2
    • Task 2.1

Table 中换行

T1 | T2<br>T3<br>T4
-- | --
T1 T2
T3
T4

html table

No padding, no strides, transposed Arbitrary padding, no strides, transposed Half padding, no strides, transposed Full padding, no strides, transposed
No padding, strides, transposed Padding, strides, transposed Padding, strides, transposed (odd)

html table tag table/tr/td/pre

int poly(int *coef, int terms, int x) {
  int power = 1;
  int value = 0;
  for (int j = 0; j < terms; j++) {
    value += coef[j] * power;
    power *= x;
  }
  return value;
}
poly:
  cmp r1, #0
  ble .L4
  push {r4, r5}
  mov r3, r0
  add r1, r0, r1, lsl junxnone/linux#59
  movs r4, junxnone/techwiki#1
  movs r0, #0
.L3:
  ldr r5, [r3], junxnone/linux#63
  cmp r1, r3
  mla r0, r4, r5, r0
  mul r4, r2, r4
  bne .L3
  pop {r4, r5}
  bx lr
.L4:
  movs r0, #0
  bx lr