From f8d081a042d7f2168dcccba98e0cb71a57f7a42b Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Tue, 10 Dec 2019 20:35:46 +0100 Subject: [PATCH] Update notty style --- statik/statik.go | 2 +- styles/notty.json | 86 ++++++++++++++++++++++++++++------------------- 2 files changed, 52 insertions(+), 36 deletions(-) diff --git a/statik/statik.go b/statik/statik.go index 8afcc2d..dd480dd 100644 --- a/statik/statik.go +++ b/statik/statik.go @@ -7,6 +7,6 @@ import ( ) func init() { - data := "PK\x03\x04\x14\x00\x08\x00\x08\x00Z\x18\x8aO\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00 \x00 \x00dark.jsonUT\x05\x00\x01\xdc\n\xef]\xacT[\xae\x9b0\x10\xfdg\x15\x96\xf3\xdb{\x95\x00\x89Z>\xfa\xdf=DB\x06\x0f\xc4\x8a\x1f\xa91R\xa4\x08\xa9k\xe9\xd2\xba\x92\xcay\x8d\x03\xce\xe3J\xe1o\x0e\x9es\xce\x8c\xc7sH\x08\xa1\xdc\xd4\xbd\x02\xedhA|L\x08\x15\x9a\x9f\xe2\xfc\xdb \xd8Yh\xc4\x9e\x16\x84\xae\xf5Z\xd33\xda\xf5M\x04\xad\x8d4\xd6\x83\xe92\xa5 !\x83\xc7\xe9f\x81\xf4\x8d\xb1\x8ayzJ\x0e\x87O\x07{7\x0c\xe41i\xc5\xeamkM\xafyy\xe5_eS\xc9\xf4\xfb5\xc3HN\x0b\xe2l\x0fh\"E\x13aI1\xed\x0b\x86fg3\xb4;Q\xce~<\x14\xceb\xd5\xcfb\x8c1\x0f\xaf\xaa\xe4wT\xde,\xb3\xbc'\xf3f\x9d\xd5]\x9d/\x0b-GB\x0d\x93\x1d*y&\xafu\x8a\xa4\xe8\x82H8P\xb1\xa9\xf9\xf7\xe7/\xc1\xf1\x06\xdd+\xb0\xcc \xa3c\x87?\x83\xa3R\xe8myQ|\xe6\xf3\xa6!>3\xd6\x92I/z\xcd\xc1J\xa1\xe1\xcc0i\xc7\x1c\xed\x08\xc5Z\x18\xf9A\xea_\xfeo\x11<\xd3\x8f\x9f\xd3G\x97g#:dz\xe6$]\x04;\xa26\x1c^\xdc\x12\xb1}\x90f\xab\xa9\xb7yv\xcb_V\xd2\xd4A\x17\x15\xb3\xad\xd0\xc1\xaa\x0b\xca\xca1\xd5\xb1J\x02\x0e\x05\xa8\xdd\xe6\xcaq\x1c\x12&E=\xbe\xaf\xceY\xa3\xdb\xf0\\t\xccm\xac\xe6\xb5\xfe8\x7f\xb1\xcd\x9a\x07\x17x,\xa8\xfc\xdd\x1b\x17\x18\xe4 1\xe8L\xe3*\x0bl\x8b\xd0\x86Y>\x86\x9c\x92\xd8\x9d\x00\xebv\xec8\xd4C2$\xff\x03\x00\x00\xff\xffPK\x07\x08cC\x86\xae\x8f\x01\x00\x001\x06\x00\x00PK\x03\x04\x14\x00\x08\x00\x08\x00\xe6\x16\x8aO\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\n\x00 \x00light.jsonUT\x05\x00\x01\x10 \xef]\xacT[\xae\x9b0\x10\xfdg\x15\x96\xf3\xdbD)\x90\xb4\xe5\xa3\xff\xddC$d\xf0@\xac\xf8\x91\x1a#E\x8a\x90\xba\x96.\xed\xae\xe4\xcay\x8d/8\xb9\x91n\xf8\x9b\x83\xe7\x9c3\xc3\xc1\xc7\x84\x10\xcaM\xdd+\xd0\x8e\x16\xc4\xd7\x84P\xa1\xf9\xb9\xce\xbf\x9d\x81\xbd\x85F\x1chA\xe8Fo4\xbd\xa0]\xdfD\xd0\xdaHc=\x98f9M\x08\x19\x86\x9c\x92\xb8\x9d\x00\xeb\xf6\xec\x14\xea!\x19\x92\xf7\x00\x00\x00\xff\xffPK\x07\x08\xbd\xb7My\x8c\x01\x00\x001\x06\x00\x00PK\x03\x04\x14\x00\x08\x00\x08\x00<\x9c\x88O\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\n\x00 \x00notty.jsonUT\x05\x00\x01%P\xed]|\x92QJ\xc40\x10\x86\xdf{\x8a!\xbeh\xd9\x8a\xeecq}\xf7\x0c\xae\xb8\xd9v\xda\x86m&%MA\x90\x05\xcf\xe2\xd1<\x89\x94\xadL\xdc\x0c},\xfd\xbf/\x7f2\xf3\x99\x01\xa8\xdaU\x93E\n\xaa\x84\xf9\x1b@\x8dS\xd3\x98\x0fU\x82\xda\x93\xca\x00\xce\x9b9\xd7\x1b:qf\xf0\xb8dn\xd5\xe6\x1a\xbbc\xcaX\xdd\xa2\x84\xbd\xbe\xcc\x7fJH\xe97\xa6;\xd4\xb5\xa1V\xe2\xf7\xf4G\x1a\xaa/\xf5\xb7\xcc=\xca\xc8\xeeY8\x0f\x9ev\x89\xea\x81U[Yu\x03\\3\xe8c\x1f]R(4h\xaf[\xaf\x87n5U\xb9Z|\xabCZ\xfa\xa0\xfeQ\xef\xc7\xdeU\xa7U9\xda\xf8t\x96\xe7\xa9\x8av\x9e\x13\x8d\xf3V\x87\xcb\xa8\x8a\xa2X\x169;g\xbf\x01\x00\x00\xff\xffPK\x07\x08}\x96v\xe0\xee\x00\x00\x00\xf4\x02\x00\x00PK\x01\x02\x14\x03\x14\x00\x08\x00\x08\x00Z\x18\x8aOcC\x86\xae\x8f\x01\x00\x001\x06\x00\x00 \x00 \x00\x00\x00\x00\x00\x00\x00\x00\x00\xa4\x81\x00\x00\x00\x00dark.jsonUT\x05\x00\x01\xdc\n\xef]PK\x01\x02\x14\x03\x14\x00\x08\x00\x08\x00\xe6\x16\x8aO\xbd\xb7My\x8c\x01\x00\x001\x06\x00\x00\n\x00 \x00\x00\x00\x00\x00\x00\x00\x00\x00\xa4\x81\xcf\x01\x00\x00light.jsonUT\x05\x00\x01\x10 \xef]PK\x01\x02\x14\x03\x14\x00\x08\x00\x08\x00<\x9c\x88O}\x96v\xe0\xee\x00\x00\x00\xf4\x02\x00\x00\n\x00 \x00\x00\x00\x00\x00\x00\x00\x00\x00\xa4\x81\x9c\x03\x00\x00notty.jsonUT\x05\x00\x01%P\xed]PK\x05\x06\x00\x00\x00\x00\x03\x00\x03\x00\xc2\x00\x00\x00\xcb\x04\x00\x00\x00\x00" + data := "PK\x03\x04\x14\x00\x08\x00\x08\x008\x9c\x8aO\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00 \x00 \x00dark.jsonUT\x05\x00\x01\x1d\xf3\xef]\xacT[\xae\x9b0\x10\xfdg\x15\x96\xf3\xdb{\x95\x00\x89Z>\xfa\xdf=DB\x06\x0f\xc4\x8a\x1f\xa91R\xa4\x08\xa9k\xe9\xd2\xba\x92\xcay\x8d\x03\xce\xe3J\xe1o\x0e\x9es\xce\x8c\xc7sH\x08\xa1\xdc\xd4\xbd\x02\xedhA|L\x08\x15\x9a\x9f\xe2\xfc\xdb \xd8Yh\xc4\x9e\x16\x84\xae\xf5Z\xd33\xda\xf5M\x04\xad\x8d4\xd6\x83\xe92\xa5 !\x83\xc7\xe9f\x81\xf4\x8d\xb1\x8ayzJ\x0e\x87O\x07{7\x0c\xe41i\xc5\xeamkM\xafyy\xe5_eS\xc9\xf4\xfb5\xc3HN\x0b\xe2l\x0fh\"E\x13aI1\xed\x0b\x86fg3\xb4;Q\xce~<\x14\xceb\xd5\xcfb\x8c1\x0f\xaf\xaa\xe4wT\xde,\xb3\xbc'\xf3f\x9d\xd5]\x9d/\x0b-GB\x0d\x93\x1d*y&\xafu\x8a\xa4\xe8\x82H8P\xb1\xa9\xf9\xf7\xe7/\xc1\xf1\x06\xdd+\xb0\xcc \xa3c\x87?\x83\xa3R\xe8myQ|\xe6\xf3\xa6!>3\xd6\x92I/z\xcd\xc1J\xa1\xe1\xcc0i\xc7\x1c\xed\x08\xc5Z\x18\xf9A\xea_\xfeo\x11<\xd3\x8f\x9f\xd3G\x97g#:dz\xe6$]\x04;\xa26\x1c^\xdc\x12\xb1}\x90f\xab\xa9\xb7yv\xcb_V\xd2\xd4A\x17\x15\xb3\xad\xd0\xc1\xaa\x0b\xca\xca1\xd5\xb1J\x02\x0e\x05\xa8\xdd\xe6\xcaq\x1c\x12&E=\xbe\xaf\xceY\xa3\xdb\xf0\\t\xccm\xac\xe6\xb5\xfe8\x7f\xb1\xcd\x9a\x07\x17x,\xa8\xfc\xdd\x1b\x17\x18\xe4 1\xe8L\xe3*\x0bl\x8b\xd0\x86Y>\x86\x9c\x92\xd8\x9d\x00\xebv\xec8\xd4C2$\xff\x03\x00\x00\xff\xffPK\x07\x08cC\x86\xae\x8f\x01\x00\x001\x06\x00\x00PK\x03\x04\x14\x00\x08\x00\x08\x00\x8d\x94\x8aO\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\n\x00 \x00light.jsonUT\x05\x00\x01\xaa\xe5\xef]\xacT[\xae\x9b0\x10\xfdg\x15\x96\xf3\xdbD)\x90\xb4\xe5\xa3\xff\xddC$d\xf0@\xac\xf8\x91\x1a#E\x8a\x90\xba\x96.\xed\xae\xe4\xcay\x8d/8\xb9\x91n\xf8\x9b\x83\xe7\x9c3\xc3\xc1\xc7\x84\x10\xcaM\xdd+\xd0\x8e\x16\xc4\xd7\x84P\xa1\xf9\xb9\xce\xbf\x9d\x81\xbd\x85F\x1chA\xe8Fo4\xbd\xa0]\xdfD\xd0\xdaHc=\x98f9M\x08\x19\x86\x9c\x92\xb8\x9d\x00\xeb\xf6\xec\x14\xea!\x19\x92\xf7\x00\x00\x00\xff\xffPK\x07\x08\xbd\xb7My\x8c\x01\x00\x001\x06\x00\x00PK\x03\x04\x14\x00\x08\x00\x08\x00`\x9c\x8aO\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\n\x00 \x00notty.jsonUT\x05\x00\x01d\xf3\xef]\x8c\x93On\xb30\x10\xc5\xf7\x9c\xc2r6\xdf\x175\x91\xda\xa6]d\xd1}\xef\x80D\x0c\x18\xb0\xf0\x1fj\x8c\x14 !\xf5,=ZOR9\xa4\xcc\x88\x1aAv\xf3<\xef7oF\xa1\x8f\x08\xa1\xb9\xc9:\xc5\xb5\xa3g\xe2kB\xa8\xd0\xf9X\x9f\x1eF\xa1\xb1\xbc\x10Wz&4\xd6\xb1\xa6w\xb5\xed\n\xacF\x84\x0c\xfe\x85V\x8f\x80*\x8cU\xcc\xa3\xe8\x8e\xf4\xfd\xd1\xf1\xab\x1b\x86U\xc0\x13\x00\xf0\xe8\x90\xefWC\x83\xf0$`>\x07C\xedVb!\xc0i\x01\xb0\x9d\xf0\xb2D\xd8\x8ex]Dlf\xf8\x1eO\x19+)ZT \xc7U\xe8\xf6\xdf\x9f_\x04\x08\\w\x8a[\xe6\x84\xd1\xa1\xe6#j\x95B\xd7\xc9|\xa2\xaeC[\xfc\x9b\xf2\xff\x07\xbfP\xac\xe4\x13`ny\xf7\xafgX\x9c\x1c\xdefV\x18\x9b\x99\x9c\x87\x18\x97\xc9}\x01\xafoNRi2\x94T1[\n\xbd\xf0U\xac\x9c\x9c\xa5\x12E\xe1\xaa\xa9B\x87\xdb\xff\xa5\xec\x01\xd2:kt\x19\xf4\x85\x8c\xc8Y\xd9\xd0\xe2\xb1>\xdc\x7f8\xeam\xe9\xe4\xa33\x0e\x05\xce\xb9\x84\xa25\x85K-g5H\x15\xb3\xf9\\rJ\xc2\x05\x91\xd66\xec\xf6\xaf\x19\xa2!\xfa \x00\x00\xff\xffPK\x07\x08\x06\xb5\xf3y6\x01\x00\x00\x80\x04\x00\x00PK\x01\x02\x14\x03\x14\x00\x08\x00\x08\x008\x9c\x8aOcC\x86\xae\x8f\x01\x00\x001\x06\x00\x00 \x00 \x00\x00\x00\x00\x00\x00\x00\x00\x00\xa4\x81\x00\x00\x00\x00dark.jsonUT\x05\x00\x01\x1d\xf3\xef]PK\x01\x02\x14\x03\x14\x00\x08\x00\x08\x00\x8d\x94\x8aO\xbd\xb7My\x8c\x01\x00\x001\x06\x00\x00\n\x00 \x00\x00\x00\x00\x00\x00\x00\x00\x00\xa4\x81\xcf\x01\x00\x00light.jsonUT\x05\x00\x01\xaa\xe5\xef]PK\x01\x02\x14\x03\x14\x00\x08\x00\x08\x00`\x9c\x8aO\x06\xb5\xf3y6\x01\x00\x00\x80\x04\x00\x00\n\x00 \x00\x00\x00\x00\x00\x00\x00\x00\x00\xa4\x81\x9c\x03\x00\x00notty.jsonUT\x05\x00\x01d\xf3\xef]PK\x05\x06\x00\x00\x00\x00\x03\x00\x03\x00\xc2\x00\x00\x00\x13\x05\x00\x00\x00\x00" fs.Register(data) } diff --git a/styles/notty.json b/styles/notty.json index 6bae6f2..a5a3291 100644 --- a/styles/notty.json +++ b/styles/notty.json @@ -1,40 +1,59 @@ { "document": { - "suffix": "\n" - }, - "link": { - "prefix": "(", - "suffix": ")" - }, - "image": { - "prefix": "[Image: ", - "suffix": "]" - }, - "heading": { - "prefix": "\n", - "indent": 2 + "indent": 4, + "prefix": "\n\n", + "suffix": "\n\n" }, "h1": { - "prefix": "\n=> ", - "suffix": " <=", - "indent": 0 + "format": "# {{.text}}", + "suffix": "\n\n" }, "h2": { - "prefix": "\n# " + "prefix": "\n", + "suffix": "\n", + "format": "## {{.text}}" }, - "table": { - "indent": 2 + "h3": { + "format": "### {{.text}}", + "suffix": "\n" }, - "paragraph": { - "indent": 2 + "h4": { + "format": "#### {{.text}}", + "suffix": "\n" }, + "h5": { + "format": "##### {{.text}}", + "suffix": "\n" + }, + "h6": { + "format": "###### {{.text}}", + "suffix": "\n" + }, + "text": {}, + "list": {}, + "item": { + "prefix": "• " + }, + "enumeration": { + "prefix": ". " + }, + "link_text": {}, + "link": { + "format": "({{.text}})" + }, + "image_text": { + "format": "Image: {{.text}} ->" + }, + "image": {}, "code": { - "prefix": "`", - "suffix": "`" + "format": "`{{.text}}`" }, "code_block": { - "indent": 2 + "margin": 4, + "prefix": "\n", + "suffix": "\n" }, + "table": {}, "emph": { "prefix": "*", "suffix": "*" @@ -43,16 +62,13 @@ "prefix": "**", "suffix": "**" }, - "list": { - "indent": 2 - }, - "item": { - "prefix": "• " - }, - "enumeration": { - "prefix": ". " - }, "hr": { - "format": "\n---\n" - } + "format": "\n--------\n" + }, + "block_quote": {}, + "del": {}, + "softbreak": {}, + "hardbreak": {}, + "html_block": {}, + "html_span": {} }