farling42 / fvtt-extra-embed

Extra Embed Options
MIT License
0 stars 0 forks source link

ko-fi patreon paypal GitHub License Latest Release Download Count Forge installs

Do you love the new @Embed enricher but wish it could embed on the first sentence or paragraph from the linked document? Then this module is for you!

Introduction

This module extends the capabilities of @Embed added in Foundry V12+ with some extra config options (which should appear after the uuid in the embed).

inline=paragraph

Only the text of the first paragraph from the linked document will be inserted into the current paragraph. (Unlike the normal inline syntax of @Embed which puts the inline text into a separate section.)

The inserted text will be in it's own span (and Foundry will give the span a class of content-embed).

inline=paragraph:N (where N is a number)

Only the text of the nth paragraph (as identified by the number after the colon) from the linked document will be inserted into the current paragraph. (Unlike the normal inline syntax of @Embed which puts the inline text into a separate section.)

The inserted text will be in it's own span (and Foundry will give the span a class of content-embed).

inline=sentence

Only the first sentence from the linked document will be inserted into the current paragraph.

The inserted text will be in it's own span (and Foundry will give the span a class of content-embed).

Additional Information

The original implementation of @Embed is described at https://github.com/foundryvtt/foundryvtt/issues/10262

Support

If you like what it does, then all contributions will be gratefully received at Kofi or Paypal or if you're feeling really generous you could set up a regular contribution at Patreon