The markdown's preview window doesn't scroll to the caret's position anymore. Am I missing something?
Thanks.
-- FredB
On 10. Nov 2006, at 03:17, Fred B wrote:
The markdown's preview window doesn't scroll to the caret's position anymore. Am I missing something?
It scrolls to the section which the caret is within. Is there a section in your document?
The reason for changing it to section instead of caret (though long ago) was, that inserting the required anchor where the caret is, can screw up the result (e.g. if the caret is in the middle of a list or code block).
On 11/10/06, Allan Odgaard throw-away-1@macromates.com wrote:
On 10. Nov 2006, at 03:17, Fred B wrote:
The markdown's preview window doesn't scroll to the caret's position anymore. Am I missing something?
It scrolls to the section which the caret is within. Is there a section in your document?
Sorry Allan, but what do you mean by a section?
On 10. Nov 2006, at 13:24, Fred B wrote:
On 11/10/06, Allan Odgaard throw-away-1@macromates.com wrote:
On 10. Nov 2006, at 03:17, Fred B wrote:
The markdown's preview window doesn't scroll to the caret's position anymore. Am I missing something?
It scrolls to the section which the caret is within. Is there a section in your document?
Sorry Allan, but what do you mean by a section?
Heading, as in:
# Chapter 1
Lorem ipsum‸
On 11/10/06, Fred B fredb7@gmail.com wrote:
On 11/10/06, Allan Odgaard throw-away-1@macromates.com wrote:
On 10. Nov 2006, at 03:17, Fred B wrote:
The markdown's preview window doesn't scroll to the caret's position anymore. Am I missing something?
It scrolls to the section which the caret is within. Is there a section in your document?
Sorry Allan, but what do you mean by a section?
Duh, I guess it's delimited by headers. Never post a mail when you're just waking up. ;) I usually have sections, that's why I didn't notice.
The reason for changing it to section instead of caret (though long ago) was, that inserting the required anchor where the caret is, can screw up the result (e.g. if the caret is in the middle of a list or code block).
Why not put the anchor only at a place where scope is text.html.markdown (or text.html.markdown + text.mail.markdown) ?
On 10. Nov 2006, at 13:55, Fred B wrote:
[...] Why not put the anchor only at a place where scope is text.html.markdown (or text.html.markdown + text.mail.markdown) ?
You’re more than welcome to send a patch :)
Just keep in mind the anchor should be somewhere above the caret, so the HTML output shows the caret roughly centered.
On 11/10/06, Allan Odgaard throw-away-1@macromates.com wrote:
On 10. Nov 2006, at 13:55, Fred B wrote:
[...] Why not put the anchor only at a place where scope is text.html.markdown (or text.html.markdown + text.mail.markdown) ?
You're more than welcome to send a patch :)
Ok, I'll take a look at it.
On 11/10/06, Fred B fredb7@gmail.com wrote:
On 11/10/06, Allan Odgaard throw-away-1@macromates.com wrote:
On 10. Nov 2006, at 13:55, Fred B wrote:
[...] Why not put the anchor only at a place where scope is text.html.markdown (or text.html.markdown + text.mail.markdown) ?
You're more than welcome to send a patch :)
I just committed a new version of the preview command. What I did is first convert to html, then add id="scroll_to_here" to a tag above the caret. Quite above, in fact, because the TM header is hiding a few lines.
Markdown users, please test and report any problem.
-- FredB
On 11/14/06, Allan Odgaard throw-away-1@macromates.com wrote:
On 14. Nov 2006, at 15:15, Fred B wrote:
I just committed a new version of the preview command.
Did you edit the XML version directly? Cause what you checkin in is not valid XML.
That was stupid, sorry about that. Fixed now.