Skip to content

The Windi CSS's Attributify Mode features fail to work when the slidev command targets a Markdown file located in a directory #130

@shoichiaizawa

Description

@shoichiaizawa

The Windi CSS's Attributify Mode features fail to work when the slidev command targets a Markdown file located in a directory.

Here below is what I generated with npm init slidev:

.
├── README.md
├── components/
├── netlify.toml
├── node_modules/
├── package.json
├── pnpm-lock.yaml
├── slides/             # <- I located multiple md files in `slides/` directory in order to manage multiple slides with one slidev installation
│   ├── slides.md       # <- This is also what initally generated with `npm init slidev`, a copy of the root `slides.md`
│   ├── my-slides01.md
│   ├── my-slides02.md
│   └── my-slides03.md
├── slides.md           # <- This is what initally generated with `npm init slidev`
└── vercel.json

And I executed the slidev command targeting slides/slides.md, which gives the Attributify Mode styling failure:

pnpx slidev slides/slides.md

image

The Attributify Mode styling only works as expected when a targeting Markdown file is located directly under the root of the slidev directory:

pnpx slidev slides.md

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions