salsadigitalauorg / merlin-framework

Merlin - migration framework
GNU General Public License v3.0
16 stars 3 forks source link

Add support for inline document links (via Drupal Linkit module) #90

Closed stooit closed 4 years ago

stooit commented 4 years ago

Description At present the media processor assumes content should be embeded using a <media> tag. This is generally fine, however in some instances an inline link embedded in a more traditional format is desirable (e.g: <a href="link/to/file.pdf">link text</a>)

This is due to the nature of the media module in Drupal being difficult to render in an inline fora

Proposed solution Add support for Linkit module (which can do link replacement based on media uuid)

Additional context Linkit markup:

<p>This is a <a data-entity-substitution="media" data-entity-type="media" data-entity-uuid="312e3e50-b99f-4e82-9145-f08d32b54249" href="#">file</a> that is linked via linkit.</p>