revolunet / sublimetext-markdown-preview

markdown preview and build plugin for sublime text 2/3
MIT License
2.31k stars 362 forks source link

<style>tag is at the head of source code #405

Closed djdeo closed 6 years ago

djdeo commented 6 years ago

The <style> tag is very long. when checking the source code of the preview page, the HTML <body> tag is at the very end of the page, need to scroll down a while to recognize that we should press the End button on the keyboard to reach the bottom.

Can we put the <body> tag at the first screen so we don't have to scroll to the end and check the HTML code?

facelessuser commented 6 years ago

Style tag should only be in the head, so this is not likely to change.

djdeo commented 6 years ago

Thanks for your update, may I ask how can i change this locally, which file shall i edit, thanks again

2017-11-07 4:55 GMT+08:00 Isaac Muse notifications@github.com:

Style tag should only be in the head, so this is not likely to change.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/revolunet/sublimetext-markdown-preview/issues/405#issuecomment-342283505, or mute the thread https://github.com/notifications/unsubscribe-auth/AevNd2JzDic607fGjo3t-WLDjieuILO0ks5sz3I5gaJpZM4QS6CM .

facelessuser commented 6 years ago

I believe you can specify your own template with this setting: https://github.com/revolunet/sublimetext-markdown-preview/blob/master/MarkdownPreview.sublime-settings#L180.

I wouldn't advise putting style anywhere but the head as only JavaScript is designed to work okay like that, but you are free to do as you like.

djdeo commented 6 years ago

Thanks, yes, you're right, can we use the at the head instead? Sorry to have asked so many questions.

2017-11-08 6:50 GMT+08:00 Isaac Muse notifications@github.com:

I believe you can specify your own template with this setting: https://github.com/revolunet/sublimetext-markdown-preview/ blob/master/MarkdownPreview.sublime-settings#L180.

I wouldn't advise putting style anywhere but the head as only JavaScript is designed to work okay like that, but you are free to do as you like.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/revolunet/sublimetext-markdown-preview/issues/405#issuecomment-342650349, or mute the thread https://github.com/notifications/unsubscribe-auth/AevNd38WZzdeLi-bJQytNEd92albNDyOks5s0N6mgaJpZM4QS6CM .

facelessuser commented 6 years ago

Live preview and such are only configured to reload the one file. This is just a simple previewer, it is not meant to generate static sites. I think for now we will continue generating the one file.

Closing as no actionable items.