我目前正在使用react-native-markdown-show来处理我的聊天数据.但我不确定如何为表格边框 colored颜色 添加样式,也没有提及文档. 我找到了一种改变外部边界 colored颜色 的方法,but no luck with the bottom border of the head row.还有什么方法可以改变它的 colored颜色 吗?
这是markdown :
这是我用来自定义的代码:
{props.message && (
<Markdown
style={{
table: {
borderColor: "white",
color: "yellow",
borderBlockEndColor: "yellow",
borderStartColor: "yellow",
borderEndColor: "yellow",
},
}}>
{`
# h1 Heading
## h2 Heading
### h3 Heading
#### h4 Heading
##### h5 Heading
###### h6 Heading
Unordered
+ Create a list by starting a line with
+ Sub-lists are made by indenting 2 spaces:
- Marker character change forces new list start:
* Ac tristique libero volutpat at
+ Facilisis in pretium nisl aliquet
- Nulla volutpat aliquam velit
+ Very easy!
Ordered
1. Lorem ipsum dolor sit amet
2. Consectetur adipiscing elit
3. Integer molestie lorem at massa
Start numbering with offset:
57. foo
58. bar
| Option | Description |
| ------ | ----------- |
| data | path to data files to supply the data that will be passed into templates. |
| engine | engine to be used for processing templates. Handlebars is the default. |
| ext | extension to be used for dest files. |
Right aligned columns
| Option | Description |
| ------:| -----------:|
| data | path to data files to supply the data that will be passed into templates. |
| engine | engine to be used for processing templates. Handlebars is the default. |
| ext | extension to be used for dest files. |
`}
</Markdown>
)}