Entry tags:
Bug 4527 bounty
I'll donate $100 to the Electronic Freedom Foundation in the name of anyone who gets Bug 4527 (crossposting Markdown results in bare syntax on remote site) fixed, payable when the fix shows up in production ;)
I would really like to start using Markdown. Unfortunately most of my friends are not cool enough to use Dreamwidth, so I am dependent on crossposting, so this issue makes Markdown use impossible for me. It should be a very small patch; my guess when I looked at it was under 10 lines, though proper error-handling and comments and such will bump it up some.
I would really like to start using Markdown. Unfortunately most of my friends are not cool enough to use Dreamwidth, so I am dependent on crossposting, so this issue makes Markdown use impossible for me. It should be a very small patch; my guess when I looked at it was under 10 lines, though proper error-handling and comments and such will bump it up some.

no subject
no subject
no subject
The one finicky part is that Markdown has to turn on preformatted mode since the HTML it builds includes paragraph spacing in the HTML. The crossposter implementation (and this isn't bad, it just IS) has its own cleaner and doesn't have a way for me to bubble up "please set opt_preformatted when you post this to the remote".
I will have to ponder how to plumb that without a gross hack worthy of turning in my badget. I'm sure there's a way...
For those following along at home, here's the patch so far:
https://github.com/xb95/dw-free/commit/2a9e8c791baf3ec5b4504b192793fd29d12b61d3
I will see if I can fix it up and get it finalized, but if someone else gets to it first, awesome! Please do.
no subject
no subject
no subject
$entry->props->{opt_preformatted} = 1;Seriously. Well, and add in a couple of comments saying that it can happen. We have much worse side-effects in our code.
As an alternative, make it
# clean the entry text, modify properties, etc.
my $entry = $self->clean_entry( $entry, $extacct );
my $req = {
'subject' => $entry->subject_text,
'event' => $entry->event_raw,
'security' => $entry->security,
};
That way it's more explicit that you're modifying the entry object. But, eh.