{"action":"created","issue":{"url":"https://api.github.com/repos/typora/typora-issues/issues/1107","repository_url":"https://api.github.com/repos/typora/typora-issues","labels_url":"https://api.github.com/repos/typora/typora-issues/issues/1107/labels{/name}","comments_url":"https://api.github.com/repos/typora/typora-issues/issues/1107/comments","events_url":"https://api.github.com/repos/typora/typora-issues/issues/1107/events","html_url":"https://github.com/typora/typora-issues/issues/1107","id":282655582,"node_id":"MDU6SXNzdWUyODI2NTU1ODI=","number":1107,"title":"equation spacing and rendering","user":{"login":"chipbrock","id":4515277,"node_id":"MDQ6VXNlcjQ1MTUyNzc=","avatar_url":"https://avatars3.githubusercontent.com/u/4515277?v=4","gravatar_id":"","url":"https://api.github.com/users/chipbrock","html_url":"https://github.com/chipbrock","followers_url":"https://api.github.com/users/chipbrock/followers","following_url":"https://api.github.com/users/chipbrock/following{/other_user}","gists_url":"https://api.github.com/users/chipbrock/gists{/gist_id}","starred_url":"https://api.github.com/users/chipbrock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chipbrock/subscriptions","organizations_url":"https://api.github.com/users/chipbrock/orgs","repos_url":"https://api.github.com/users/chipbrock/repos","events_url":"https://api.github.com/users/chipbrock/events{/privacy}","received_events_url":"https://api.github.com/users/chipbrock/received_events","type":"User","site_admin":false},"labels":[{"id":245749928,"node_id":"MDU6TGFiZWwyNDU3NDk5Mjg=","url":"https://api.github.com/repos/typora/typora-issues/labels/bug","name":"bug","color":"fc2929","default":true},{"id":245749930,"node_id":"MDU6TGFiZWwyNDU3NDk5MzA=","url":"https://api.github.com/repos/typora/typora-issues/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-12-16T22:39:11Z","updated_at":"2019-11-19T02:33:49Z","closed_at":null,"author_association":"NONE","body":"I really enjoy typora... I'm actually writing a textbook using it. But there's one issue that's really annoying and has been evident since day one on the mac.\r\n\r\nIf I want to add a numbered or display equation, I should be able to hit return at the end of a paragraph [that creates a line feed in the viewer], type the $$ and return, fill in the equation in the nice tool, and then exit. That produces a rendering that looks like the following:\r\n\r\n> previous paragraph\r\n> line space\r\n> equation\r\n> 2 line spaces <--- ?\r\n> next paragraph\r\n\r\nin the source view it becomes:\r\n\r\n> All three natural motions just happened...um, naturally.\r\n> $$\r\n> E=mc^2\r\n> $$\r\n>  (space)\r\n>  (space)\r\n> Unnatural motion was different. It required a pusher...an active force that was in \r\n\r\nThis is verbatim: those spaces are visible in the source view and there is no space before the first $$, not what's seen in the viewer which looks to have one space above the equation (like it should be rendered in a web browser) and two or three spaces (not clear) after the equation. \r\n\r\nIn a browser, the equation actually is in line! Not display! \r\n\r\nIn order to get the equation to be properly positioned as a display equation, I must do something unnatural:\r\n\r\nI must hit another carriage return in the viewer - which translates into MANY spaces now in the source view. Like this:\r\n\r\n> All three natural motions just happened...um, naturally.\r\n>  (space)\r\n>  (space)\r\n> $$\r\n> E=mc^2\r\n> $$\r\n> (space)\r\n>  (space)\r\n> Unnatural motion was different. It required a pusher...an active force that was in \r\n\r\nThis is a huge amount of white space in the viewer, which is attached.\r\n\r\nOnly then does it work properly\r\n<img width=\"1106\" alt=\"screenshot_935\" src=\"https://user-images.githubusercontent.com/4515277/34075049-5255d078-e289-11e7-90c6-ee75bbd915fd.png\">\r\n in a browser.\r\n\r\nThis doesn't make sense. If one is triggering the equation tool with the $$ it's clear that the plan is a display equation and typora should insert all of the necessary blank lines - AND NO MORE - in order to accomplish that goal. \r\n\r\nIt seems silly, but it's annoying and makes the nice viewer not reflect html reality.\r\n\r\nthanks\r\nRay"},"comment":{"url":"https://api.github.com/repos/typora/typora-issues/issues/comments/555304434","html_url":"https://github.com/typora/typora-issues/issues/1107#issuecomment-555304434","issue_url":"https://api.github.com/repos/typora/typora-issues/issues/1107","id":555304434,"node_id":"MDEyOklzc3VlQ29tbWVudDU1NTMwNDQzNA==","user":{"login":"Noxware","id":7684329,"node_id":"MDQ6VXNlcjc2ODQzMjk=","avatar_url":"https://avatars2.githubusercontent.com/u/7684329?v=4","gravatar_id":"","url":"https://api.github.com/users/Noxware","html_url":"https://github.com/Noxware","followers_url":"https://api.github.com/users/Noxware/followers","following_url":"https://api.github.com/users/Noxware/following{/other_user}","gists_url":"https://api.github.com/users/Noxware/gists{/gist_id}","starred_url":"https://api.github.com/users/Noxware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Noxware/subscriptions","organizations_url":"https://api.github.com/users/Noxware/orgs","repos_url":"https://api.github.com/users/Noxware/repos","events_url":"https://api.github.com/users/Noxware/events{/privacy}","received_events_url":"https://api.github.com/users/Noxware/received_events","type":"User","site_admin":false},"created_at":"2019-11-19T02:33:49Z","updated_at":"2019-11-19T02:33:49Z","author_association":"NONE","body":"I'm having the same problem. Any progress on this?"}}
{"actor":{"display_login":"Noxware"}}