- Issue created by @Grevil
- First commit to issue fork.
- πΊπΈUnited States TolstoyDotCom L.A.
I'm not familiar with the module but I'll try to take care of some of those tomorrow. Anyone else can go ahead if they want.
- πΊπΈUnited States TolstoyDotCom L.A.
This seems like it would be better handled by the person who wrote the @todo notes on the classes. A lot of the issues are version related.
In Drupal\markdown\Plugin\Markdown\CommonMark\CommonMark::getEnvironment, instead of creating the Environment at the beginning, create the array used for the environment and then pass that array to the constructor for the environment.
That's because of this note in the CommonMark library: "@deprecated Environment::mergeConfig() is deprecated since league/commonmark v2.0 and will be removed in v3.0. Configuration should be set when instantiating the environment instead."Drupal\markdown\Commands\MarkdownCommands calls
drush_set_error
. For Drush 9, that should bethrow new \Exception
(https://weitzman.github.io/blog/port-to-drush9).
If earlier versions of Drush are to be supported, then those calls could be replaced with$this->handleError()
which would calldrush_set_error
if it's defined, or throw an exception otherwise.The warning about the call to
$this->httpClient->get($url)
in Drupal\markdown\Markdown is a false positive, that's a magic method. - π©πͺGermany Grevil
@TolstoyDotCom, thanks for taking a shot! I'd say we could also just simply fix most deprecation errors in this issue and create a follow-up issue with the rest! Mainly, the Twig and Drush depredations need a fix.
Also:- The Commonmark depredations will probably be fixed in β¨ Add support for Commonmark v2 Active
- I'd say it's ok to not support Drush <= 8 anymore, hence it is pretty dated, but that should be decided by a maintainer.
- πΊπΈUnited States markdorison
I'd say it's ok to not support Drush <= 8 anymore, hence it is pretty dated, but that should be decided by a maintainer.
Personally, I am comfortable dropping support for Drush 10 and below.