fbreuer / qute-html5

Qute Text Editor - built with web technologies
http://www.inkcode.net/qute
GNU Affero General Public License v3.0
127 stars 6 forks source link

preview for code block #37

Open pkra opened 12 years ago

pkra commented 12 years ago

I just noticed the following: if I do a markdown code block with 4 white spaces, the preview breaks: the text in the code block is displayed without any line break.

I can reproduce this reliably in two-pane mode, but in single window mode it is more erratic -- sometimes having a consecutive line in the paragraph prevents the code block and thereby the breaking...

fbreuer commented 12 years ago

does this problem persist, if you save, close and reload the document? if yes, could you provide a test case?

2011/8/3 pkra < reply@reply.github.com>

I just noticed the following: if I do a markdown code block with 4 white spaces, the preview breaks: the text in the code block is displayed without any line break.

I can reproduce this reliably in two-pane mode, but in single window mode it is more erratic -- sometimes having a consecutive line in the paragraph prevents the code block and thereby the breaking...

Reply to this email directly or view it on GitHub: https://github.com/fbreuer/qute-html5/issues/37

http://www.felixbreuer.net

pkra commented 12 years ago

Here's an example: copy and paste with the exact white space indentation

   Coming from $\LaTeX$ and its text-editor driven writing style, working with wordpress can seem a step back -- 
   after all, most people, if they get excited about $\TeX$, very much despise the wysiwyg approach to writing.

That's 7 spaces. The markdown-offical 4 do not work at all, it seems.

fbreuer commented 12 years ago

hm, if i copy the above snippet, start qute, open a new file, paste and then toggle the above block, i get a code block with proper line breaking. if i do the same thing in split view, the line break is also at the correct position - but the paragraph is too wide.

so, i cannot reproduce the problem you are seeing just yet (at least on Windows). i will have to keep trying.

2011/8/4 pkra < reply@reply.github.com>

Here's an example: copy and paste with the exact white space indentation

  Coming from $\LaTeX$ and its text-editor driven writing style,

working with wordpress can seem a step back -- after all, most people, if they get excited about $\TeX$, very much despise the wysiwyg approach to writing.

Reply to this email directly or view it on GitHub: https://github.com/fbreuer/qute-html5/issues/37#issuecomment-1726565

http://www.felixbreuer.net

pkra commented 12 years ago

Hm. I send you some screenshots by email to show what it looks like on Linux.