April 02
On Friday, 2 April 2021 at 10:12:25 UTC, ag0aep6g wrote:
> On 02.04.21 09:56, Vladimir Panteleev wrote:
>> On Thursday, 1 April 2021 at 16:21:42 UTC, ag0aep6g wrote[...]
>> I have added a lint rule which warns on thus omitted HTML code, and offers to fix it (by adding escaping backslashes).
>
> Nice, but the warning doesn't show up for me. Probably not deployed yet?

No, it's deployed. Note, though, that the check runs when you click "Send".

You can use the hidden old D group for testing:
https://forum.dlang.org/group/D

> Does the forum even support any HTML tags? If not, there's no point in stripping them. But maybe that's a limitation of the Markdown library you're using.

The implementation does provide a knob with two settings (strip all HTML or allow all HTML). I don't know if it's due to a technical limitation of that particular implementation. I suspect that the reason may be something along the lines of that for the purposes of the formal specification, there should be a simple and clear rule for when sequences of characters are interpreted as HTML vs. when they are not, or something like that.

> As far as I'm aware, the newsgroup and mailing list interfaces are popular among forum regulars. If replying to them with Markdown is difficult, that's going to be annoying for the web users.
>
> Luckily, the difference Markdown makes will be benign most of the time. It's not a big deal when "**emphasis**" or "`some code`" get interpreted as Markdown.

Yes. But also, though formatting is indeed very useful for *some* posts, it will not significantly improve the majority of posts.

April 02
On 02.04.21 12:23, Vladimir Panteleev wrote:
> On Friday, 2 April 2021 at 10:12:25 UTC, ag0aep6g wrote:
>> On 02.04.21 09:56, Vladimir Panteleev wrote:
>>> On Thursday, 1 April 2021 at 16:21:42 UTC, ag0aep6g wrote[...]
>>> I have added a lint rule which warns on thus omitted HTML code, and offers to fix it (by adding escaping backslashes).
>>
>> Nice, but the warning doesn't show up for me. Probably not deployed yet?
> 
> No, it's deployed. Note, though, that the check runs when you click "Send".

I see. I think it should trigger on "save and preview", though. That's when the author is ready to make corrections.

The replacement is overzealous. It also affects tags in backticks where the Markdown processor already handles them.

For example, this:

    `<foo>` <foo>

becomes this:

    `\<foo>` \<foo>

but it should become this:

    `<foo>` \<foo>

[...]
> The implementation does provide a knob with two settings (strip all HTML or allow all HTML). I don't know if it's due to a technical limitation of that particular implementation. I suspect that the reason may be something along the lines of that for the purposes of the formal specification, there should be a simple and clear rule for when sequences of characters are interpreted as HTML vs. when they are not, or something like that.

Weird that there's no setting "escape all HTML" or at least "error on all HTML".
April 02
On 4/1/21 1:24 PM, Ali Çehreli wrote:
> On 4/1/21 12:42 PM, Walter Bright wrote:
> 
>  > I'm concerned about running arbitrary scripts - what if bad people post
>  > malicious scripts that unsuspecting forum readers may run by reading the
>  > message? Could the Dfeed server be compromised by them?
> 
> Vladimir is implementing better checks against bad people. Malicious code will automatically be bounced back to the attacker. Stay tuned...

It case it wasn't clear, it's finally April 2. ;) Maybe the joke is on me but I took neither Ddoc nor SCRIPT support seriously.

Ali

April 02

On Thursday, 1 April 2021 at 19:42:24 UTC, Walter Bright wrote:

>

On 4/1/2021 12:27 AM, Vladimir Panteleev wrote:

>

And if the above is not sufficient to express your intent, there is the nuclear option: $(SCRIPT ...), which allows embedding arbitrary JavaScript to format your post in however way you desire. jQuery is preloaded, so go nuts!

I'm concerned about running arbitrary scripts - what if bad people post malicious scripts that unsuspecting forum readers may run by reading the message? Could the Dfeed server be compromised by them?

Take a look at the calendar 😉

April 02
On 4/1/21 8:57 PM, Vladimir Panteleev wrote:
> On Thursday, 1 April 2021 at 18:22:47 UTC, Ali Çehreli wrote:
>> On the other hand, I am able to add headers other than Content-Type. So, perhaps Vladimir can support something like the following?
>>
>>   X-Markup: markdown
> 
> This method of advertising Markdown content was chosen because there is precedent for it:
> 
> https://www.google.com/search?q=%22Content-Type%22+%22markup%3Dmarkdown%22
> 
> As such, I think deviating from this convention would not be in line with maximizing interoperability.
> 
> I think the best way to add this to Thunderbird would be to write a small extension. Perhaps the extension could even provide a preview of the Markdown render, which would be useful to avoid accidentally mis-formatting the text, or even allow authoring messages in a WYSIWYG style (using one of the many available JavaScript/HTML Markdown WYSIWYG editors).
> 

You can support both Content-Type and X-Markup (or whatever), no? I mean, we are talking the difference between writing a custom plugin for a desktop application and changing a couple lines in the server to look at a possible other header.

-Steve
April 02

On Thursday, 1 April 2021 at 07:27:38 UTC, Vladimir Panteleev wrote:

>

...

I think there's something wrong, please see this topic: https://forum.dlang.org/post/wutkgkavtvggfvrqjtpv@forum.dlang.org

I am getting this: https://i.imgur.com/Iu4enN8.png

Is this right?

April 02
On Friday, 2 April 2021 at 12:29:22 UTC, Ali Çehreli wrote:
> It case it wasn't clear, it's finally April 2. ;) Maybe the joke is on me but I took neither Ddoc nor SCRIPT support seriously.

I have to admit: I initially believed the DDOC statement--the more subtle, the better!
April 02
On Friday, 2 April 2021 at 19:01:09 UTC, superbomba wrote:
> On Thursday, 1 April 2021 at 07:27:38 UTC, Vladimir Panteleev wrote:
>> ...
>
> I think there's something wrong, please see this topic: https://forum.dlang.org/post/wutkgkavtvggfvrqjtpv@forum.dlang.org
>
> I am getting this: https://i.imgur.com/Iu4enN8.png
>
> Is this right?

So for what It seems the Markdown formatting is wrong in this case. But looking forward there is this another thread: https://forum.dlang.org/thread/s453vl$2pl3$1@digitalmars.com

Which seems to have the right Markdown but doesn't no shows any formatting, and then I was told that is because it was from the e-mail client.

Shouldn't the front-end take care of this?
April 02
Some messages have different fonts, this is very distracting when reading messages

Is it possible to have posts use the same font no matter if it is rendered using markdown or no? that'll help with consistency

Other than that, i like this addition, it makes pasting code looks much cleaner etc, good job!
April 02
On 4/1/2021 12:42 PM, Walter Bright wrote:
> I'm concerned about running arbitrary scripts - what if bad people post malicious scripts that unsuspecting forum readers may run by reading the message? Could the Dfeed server be compromised by them?

This just showed up on HackerNews:

https://www.paulosyibelo.com/2021/04/this-man-thought-opening-txt-file-is.html
1 2 3 4 5 6 7