Conflict with Smart Trim module

Created on 2 September 2023, over 1 year ago

Problem/Motivation

Markdown Easy doesn't play nicely with Smart Trim β†’ module. This is mainly due to the order that filters are applied in a text format.

Steps to reproduce

We need this - would be a nice way for a novice to get a contribution credit (hint hint).

I played with this issue a bit a few weeks ago and left myself the following notes, but haven't followed up on it yet.

To test, add the following
// Add this to avoid Markdown filter issue?
// $rendered_output = check_markup($output, $item->format);
// $output = $rendered_output->__toString();

Right before
// Process additional options (currently only HTML on/off).
if (!empty($setting_trim_options)) {

In
public function viewElements(FieldItemListInterface $items, $langcode = NULL): array {

Proposed resolution

Make the two filters play nicely together.

Remaining tasks

All of them (other than creating this issue).

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States ultimike Florida, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024