Michel Fortin

Results 160 comments of Michel Fortin

How do you propose to handle footnotes like this one[^1]. [^1]: Footnotes are often one line of text, but this line of text can contain formatting such as `code`, _emphasis_,...

I think truncating it if too long makes this idea reasonable. It should probably truncate at the first end of paragraph `` and some other tags too (``, ``…). It'd...

Personally, I think we could cheat a bit more. Something like this: ``` list($title, $tail) = preg_split('{\s*}i', $title, 2); // split at $truncated = $tail != ''; $title = preg_replace('{

I suppose a solution could be to have two limits: 100 characters + characters until word break, but if no word break is found between the 100th and 120th character...

`$this->unhash($text)` (inherited from the Markdown class)

I don't see how that change makes sense. No one is calling these callback functions with a second parameter.

What makes no sense here is to add a function parameter. This function is never going to receive a `$text` parameter, and has no reason to receive one either, so...

You can use quotes: ``` [Link](url){.link target=_blank rel="noreferrer noopener"} ```

I was confused. You're right: there's no way at the moment to have a space in a custom attribute. You can write the link in HTML form though (if the...

It works using `_`, but it's not a great solution. People will expect things like `target=_blank` to work correctly too. `rel=att1 rel=att2` could be made to work, but it doesn't...