Skip to content

embed directive #11

Closed

Description

@Mpdreamz

Embed

Kind Link
Reference https://mystmd.org/guide/directives#directive-embed
Documentation https://mystmd.org/guide/embed

The embed directive allows you to duplicate content from another part of your project. This can also be done through the figure directive.

Implementation

  • Parses directives and aliases
  • Emits HTML
  • Unit tests
  • Validation (emits, warnings and errors).

Specification compliance:

  • Arguments is not parsed and reference a known label
  • Body is not parsed and treated as raw string
  • Options:
    • remove-input (boolean) - If embedding a Jupyter Notebook cell, remove the input of the cell.
    • remove-output (boolean) - If embedding a Jupyter Notebook cell, remove the output of the cell.

Activity

  1. Mpdreamz commented on Nov 6, 2024

    @Mpdreamz
    MemberAuthor

    As per https://mystmd.org/guide/embed and in particular the section on {include} vs {embed}` I am personally leaning on not implementing this directive and emit a warning for its usage.

    • I think it's more prescriptive for reusable content to always live separately and not yank pieces of content from other pages.

    What do you think @bmorelli25 ?

    (As an aside should we create a GitHub team for folks interested in these types of discussions?)

  2. added
    authoring
    on Nov 6, 2024
  3. bmorelli25 commented on Nov 7, 2024

    @bmorelli25
    Member

    cc @KOTungseth. We should discuss this one on Monday. We should also ensure the right writers are involved in these conversations.

  4. bmorelli25 commented on Jan 14, 2025

    @bmorelli25
    Member

    This maps to the tagged region syntax in asciidoc which we don't want to support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    authoring

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions