[SOLVED] Issue with some plugins in ACP v0.5.2
-
-
Kind of difficult to fix, because of the change made to Markdown... if the new "noFollow" option is turned on (which it is, by default), a link as returned by markdown would look like this:
<a rel="nofollow" href="//mysite.com">Site</a>
instead of...
<a href="//mysite.com">Site</a>
... which means all of the existing regex won't match any longer. Drat.
Both the "workaround" and the "solution" involve one crappy step: All of the affected plugins need to rewrite their regex or refactor their entire plugin.
The workaround:
- All plugins need to rewrite their regex to accommodate the
rel="nofollow"
addition - If more changes get added to Markdown, all of the affected plugins will break again
- = Bad solution
The solution:
See gh#2263
... and to round it out
The cop-out
- @julian just removes the
rel="nofollow"
from Markdown XD ... but that's a step back.
Example 1:
[ { type: 'blockquote_start' }, { type: 'paragraph', text: 'i am using marked.' }, { type: 'blockquote_end' }, links: {} ]
- All plugins need to rewrite their regex to accommodate the
Copyright © 2024 NodeBB | Contributors