Closed bgotink closed 7 years ago
Hi @bgotink
Thank you for bug reporting, I fixed the problem and released version 0.0.9.
> echo 'Foo :ref:`bar`' | restructured
{"type":"document","children":[{"type":"paragraph","children":[{"type":"text","value":"Foo "},{"type":"interpreted_text","children":[{"type":"text","value":"bar"}],"role":"ref"},{"type":"text","value":"\n"}]}]}
> echo '`x` :y:`z` :a:b' | restructured | jq
{
"type": "document",
"children": [
{
"type": "paragraph",
"children": [
{
"type": "interpreted_text",
"children": [
{
"type": "text",
"value": "x"
}
],
"role": null
},
{
"type": "text",
"value": " "
},
{
"type": "interpreted_text",
"children": [
{
"type": "text",
"value": "z"
}
],
"role": "y"
},
{
"type": "text",
"value": " :a:b\n"
}
]
}
]
}
awesome, thanks!
The last version no longer supports references: