Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Calendar Month Markdown Table #15

Closed
MartinPacker opened this issue Mar 13, 2022 · 4 comments
Closed

Create Calendar Month Markdown Table #15

MartinPacker opened this issue Mar 13, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@MartinPacker
Copy link
Owner

Candidate syntax:

=cal November 2021
=endcal
@MartinPacker MartinPacker added the enhancement New feature or request label Mar 13, 2022
@MartinPacker
Copy link
Owner Author

Actually more like =cal 2021 11.

And I think we can highlight with a CSS class particular days:

=cal 2021 11
=caldays blue 14 15 16 17
=caldays green 18
=endcal

blue and green are classes - and the day numbers would be wrapped with <span> elements with class= set.

@MartinPacker
Copy link
Owner Author

Added syntax:

=calnote 17 A

adds annotation to calendar entry for 17th day.

This annotation can have a <span> in it to colour it.

Also added

=calkeys blue Day we have data for

which generates a bullet coloured using class blue and text Day we have data for to act as a kind of key to colouring.

@MartinPacker
Copy link
Owner Author

A third parameter to =cal defines how many lines each row should occupy:

=cal 2021 11 3

Gives 3 lines in a row. The default is 2.

Here's a complete test calendar:

### November 2021
<!-- md2pptx: contentSplit: 2 1 -->

=cal 2021 12 2
=caldays blue 14 15 16 17
=caldays orange 18
=calkey blue We have data for **somehow**
=calkey orange Is focus day
=calnote 17 A
=calnote 18 <span class="green">B</span>
=calnote 4 X
=endcal

* An unrelated bullet
  * An unrelated sub-bullet

Obviously - with the md2pptx dynamic contentSplit specification - this tests well with md2pptx.

@MartinPacker
Copy link
Owner Author

Shipped in v0.6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant