Skip to content

Add support for Tasks CSS Styling in Source mode #3677

@claremacrae

Description

@claremacrae

⚠️ Check request is valid.

  • My request is about the Tasks plugin for Obsidian.
  • I am only requesting a single feature in the Tasks plugin. Multiple changes should be split into individual requests, with links between them.
  • I believe my requested feature will be generally applicable to other Tasks plugin users, not just me: it is not uniquely tied to my personal workflow.

⚠️ Please check that this feature request hasn't been suggested before.

🔖 Feature description

Allow the CSS classes and data attributes described in the Styling docs to work in Source mode.

This will address a limitation recorded in the same docs page:
https://publish.obsidian.md/tasks/Advanced/Styling#Limitations+of+styling

This is a variant of #3670.

✔️ Solution

Requirements of this implementation:

  • It should work on all formats supported by Tasks (currently, Markdown and dataview)
  • It should use the same Tasks CSS classes and data attributes as currently supported in Reading Mode and Tasks search results

❓ Alternatives

No response

📝 Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    display: source modeIssues referring to Obsidian's Source Mode Viewscope: css stylingChanges to styling of elements displayed by Tasks, including search results and individual tasksscope: rendering of tasksHow the plugin displays tasks, including search results (except CSS issues)type: enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions