{"action":"closed","issue":{"url":"https://api.github.com/repos/tamlok/vnote/issues/428","repository_url":"https://api.github.com/repos/tamlok/vnote","labels_url":"https://api.github.com/repos/tamlok/vnote/issues/428/labels{/name}","comments_url":"https://api.github.com/repos/tamlok/vnote/issues/428/comments","events_url":"https://api.github.com/repos/tamlok/vnote/issues/428/events","html_url":"https://github.com/tamlok/vnote/issues/428","id":364742307,"node_id":"MDU6SXNzdWUzNjQ3NDIzMDc=","number":428,"title":"字体颜色、居中对齐的问题","user":{"login":"librix","id":10742127,"node_id":"MDQ6VXNlcjEwNzQyMTI3","avatar_url":"https://avatars0.githubusercontent.com/u/10742127?v=4","gravatar_id":"","url":"https://api.github.com/users/librix","html_url":"https://github.com/librix","followers_url":"https://api.github.com/users/librix/followers","following_url":"https://api.github.com/users/librix/following{/other_user}","gists_url":"https://api.github.com/users/librix/gists{/gist_id}","starred_url":"https://api.github.com/users/librix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/librix/subscriptions","organizations_url":"https://api.github.com/users/librix/orgs","repos_url":"https://api.github.com/users/librix/repos","events_url":"https://api.github.com/users/librix/events{/privacy}","received_events_url":"https://api.github.com/users/librix/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-28T05:04:40Z","updated_at":"2018-12-16T01:04:08Z","closed_at":"2018-12-16T01:04:08Z","author_association":"NONE","body":"OS Version (操作系统): Windows, Linux, macOS\r\n\r\nVNote Version (VNote版本): Latest (最新)\r\n\r\nSymptoms (表现):HTML 代码在文本中显示很长。颜色值和代码输入不方便，且显示方式上与文本混杂很怪异。居中、居右操作不便。\r\n\r\nHow to Repro (如何复现): \r\n\r\n> `在 md 文件中输入<font color=\"red\">紅色</font> <div style=\"color:orange; margin:0px auto;text-align: center;\">文字顏色為橘色</div> 这段文字。`\r\n\r\nQuestion：现在是有有成熟的输入方式？若无，可否添加 shortcuts 为选中文字插入这两段代码，并且显示方式上做一些优化。比如：在选中文字的时候可以弹出一个样式修改器。样式修改器按钮可以自定义代码。\r\n![image](https://user-images.githubusercontent.com/10742127/46188859-27dc8a00-c31e-11e8-9ce6-1173f239bd65.png)\r\n感觉使用正则表达式替换就很方便，比如`~s/(mark)/<font color=\"red\">$1<\\/font>/ig`\r\n"}}
{"actor":{"display_login":"tamlok"}}