-
assigned issue to
Wiki transformer has inconsistent casing for hex letters in colours
Issue #43
closed
The typescript transformer lower cases all letters in hex colour values.
The ADF library lower cases lower cases hex values from wiki, but upper cases labelled colours.
Let’s make the library lower case everything too.
Wiki
{color:#02Aa00}using hex{color}
{color:red}using name{color}
Typescript ADF:
{
"version": 1,
"type": "doc",
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "using hex",
"marks": [
{
"type": "textColor",
"attrs": {
"color": "#02aa00"
}
}
]
},
{
"type": "hardBreak"
},
{
"type": "text",
"text": "using name",
"marks": [
{
"type": "textColor",
"attrs": {
"color": "#ff0000"
}
}
]
}
]
}
]
}
Library ADF:
{
"type" : "doc",
"version" : 1,
"content" : [ {
"type" : "paragraph",
"content" : [ {
"type" : "text",
"text" : "using hex",
"marks" : [ {
"type" : "textColor",
"attrs" : {
"color" : "#02aa00"
}
} ]
}, {
"type" : "hardBreak"
}, {
"type" : "text",
"text" : "using name",
"marks" : [ {
"type" : "textColor",
"attrs" : {
"color" : "#FF0000"
}
} ]
} ]
} ]
}
Comments (3)
-
reporter -
- changed status to resolved
Fixed in
0.24.4
-
- changed status to closed
- Log in to comment