Skip to content

image directive #15

Closed
Enhancement
@Mpdreamz

Description

@Mpdreamz

Image

Kind Link
Reference https://mystmd.org/guide/directives#directive-figure
Documentation https://mystmd.org/guide/figures#image-directive

Implementation

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

Specification compliance:

  • Argument (string)
    • The filename of an image (e.g. my-fig.png)
    • Or an ID of a Jupyter Notebook cell (e.g. #my-cell).
      Pending discussion on embed directive #11 to see if we need to support id references
  • Options
    • label, name (string) - Label the figure to be cross-referenced or explicitly linked to.
    • enumerated, numbered (boolean) - Turn on/off the numbering for the specific figure
    • enumerator, number (string) - Explicitly set the figure number
    • class, figclass (string)
    • height, h (string) - The figure height, in CSS units, for example 4em or 300px.
    • width, w (string) - The figure width, in CSS units, for example 50% or 300px.
    • alt (string) - Alternative text for the image
    • align (string) - The alignment of the image in the figure. Choose one of left, center or right
    • title (string) -Title text for the image

Metadata

Metadata

Assignees

No one assigned

    Labels

    authoringRelates to our markdown parser

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions