-
-
Notifications
You must be signed in to change notification settings - Fork 11.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Using WordPress, it does not insert </p> at end of parragraphs #123
Comments
This is by design, although perhaps it could be better, so I'll leave this open. Here's how it works, more or less: We count up the For editors that use So if the user types out this kind of thing:
(Cheating on backticks.) Markdown Here converts that to this plaintext:
And so it renders with just a single I did this on purpose. It means you can write Markdown exactly as you would in a text editor or in Gmail -- hit However, maybe there's a smarter way. Something like: If it's detected that This will be tricky and a little bit dirty. And the behaviour should probably be optional. And it will need a lot of testing. Might work well, though. |
I thought of something you can try to get around this: Add more space to the In the Markdown Here options, add this to the Primary Styling CSS:
That will give more space to ordinary line breaks, making them look more like paragraph breaks. I'm not sure there won't be unintended styling side-effects, though. Please try it and and let me/us know how it works. Thanks. |
I created a couple of Wordpress test posts using the trick I suggested... with mixed results. So, here's a post four ways:
The extra space style is an improvement, although it's a mixed bag, as you can see. Limitations:
I think limitation number 2 is the real kicker. It means that you will need to learn where you can get away without a blank line and where you can't. It also means that I don't think there's anything I can do on the output side to make this better -- because real failures will start with parsing. Unless you're willing to learn those input idiosyncrasies, ... you're not going to be able to have your cake and eat it too. In Markdown, you hit I think that the cleanest way to work with Wordpress is to ignore the extra paragraph space while you're composing -- write Markdown with your eyes closed. Hit But... if you learn the special cases, and use the special style... then maybe you can get proficient and comfortable with fewer double- I'm going to close this issue, since I don't think there's any code change that can be done here. I'm going to link to this issue from the Compatibility wiki page in case the info is useful to someone else. (For the record, when creating the test posts I used a "typing paste" AutoHotKey script.) |
No, thanks! Definitely, that would not be acceptable. I want the HTML to be text ... . An ENTER means "I want to end thisparagraph and begin another". The space after a should remain normal. Thanks for the suggestion, anyway. On Tue, Oct 22, 2013 at 11:15 AM, Adam Pritchard
|
Using the same browser Chrome, with a window producing good email text, a Wordpress article can not be written using MDH due to the program NOT inserting the closing/opening
pair at the end of paragraphs. I'm using the MDH regular settings, the most standard ones.
The WordPress text editor renders an extra space after a single ENTER when a paragraph is done. I like that. I've seen the HTML code MDH generates and the only problem is that it is NOT correctly adding the
(previous paragraph) and(next paragraph) in the HTML generated by MDH.
However, all of the above works perfectly well typing messages in Gmail.
The text was updated successfully, but these errors were encountered: