uniorg icon indicating copy to clipboard operation
uniorg copied to clipboard

Adding class to task headings

Open ispringle opened this issue 3 years ago • 1 comments

It'd be great if the task headings ie:

* TODO foo
* DONE bar

Had a class name added so we can style them separately from the regular headings.

ispringle avatar Aug 04 '22 18:08 ispringle

This can be done as a plugin or by adding a className here (conditional on whether headline has a todo keyword): https://github.com/rasendubi/uniorg/blob/da79786f7c3afda29f8fb65052e09ca4fec6d4f3/packages/uniorg-rehype/src/org-to-hast.ts#L261

rasendubi avatar Aug 06 '22 12:08 rasendubi

Here is an example of how to do that with a plugin: https://github.com/rasendubi/uniorg/pull/46#issuecomment-1236140015

rasendubi avatar Sep 06 '22 21:09 rasendubi