All Projects → TseHang → markdown-it-calendar

TseHang / markdown-it-calendar

Licence: MIT license
Automatically produced markdown-it-calendar

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects
HTML
75241 projects
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to markdown-it-calendar

croncal
Utility to convert a crontab file to a list of actual events within a date range.
Stars: ✭ 37 (+60.87%)
Mutual labels:  calendar
taskwarrior-syncall
Synchronization between Taskwarrior tasks and services such as Google Calendar, Notion and Google Keep. Formerly taskw_gcal_sync
Stars: ✭ 151 (+556.52%)
Mutual labels:  calendar
Shift
Light-weight EventKit wrapper.
Stars: ✭ 31 (+34.78%)
Mutual labels:  calendar
markdown-it-fence
fence customize plugin for markdown-it
Stars: ✭ 20 (-13.04%)
Mutual labels:  markdown-it
GDCalendar
Calendar component with RTL languages written in swift
Stars: ✭ 27 (+17.39%)
Mutual labels:  calendar
nepali date picker
Material Style Date Picker with Bikram Sambat(Nepali) Calendar Support. Supports both Android and ios.
Stars: ✭ 30 (+30.43%)
Mutual labels:  calendar
DailyImageWidget
Android 桌面小部件(widget)日签 Or 日历,可作为桌面日历。Just For Fun! 🎮
Stars: ✭ 30 (+30.43%)
Mutual labels:  calendar
hebcal-es6
Hebcal, a perpetual Jewish Calendar (ES6)
Stars: ✭ 45 (+95.65%)
Mutual labels:  calendar
gahshomar
A Persian (Jalali/Farsi) calendar for Linux
Stars: ✭ 69 (+200%)
Mutual labels:  calendar
svelte-fullcalendar
A Svelte component wrapper around FullCalendar
Stars: ✭ 123 (+434.78%)
Mutual labels:  calendar
webmail-pro-8
Webmail front-end for existing mail server, with personal calendar, contacts, and mobile sync.
Stars: ✭ 23 (+0%)
Mutual labels:  calendar
Daylight-Calendar-ICS
Daylight Calendar is a dynamically generated .ics calendar that you can host and subscribe to in Google Calendar, iCal, or other calendar software.
Stars: ✭ 22 (-4.35%)
Mutual labels:  calendar
laravel-fullcalendar
Laravel Fullcalendar component
Stars: ✭ 57 (+147.83%)
Mutual labels:  calendar
infocenter
Raspberry Pi weather, calendar, and internet radio with graphical, touch-based interface.
Stars: ✭ 18 (-21.74%)
Mutual labels:  calendar
calendar
calendar 日历的使用
Stars: ✭ 15 (-34.78%)
Mutual labels:  calendar
BusinessDays.jl
📆 A highly optimized Business Days calculator written in Julia language. Also known as Working Days calculator.
Stars: ✭ 53 (+130.43%)
Mutual labels:  calendar
ionic4-date-picker
Calendar date picker for Ionic4 apps
Stars: ✭ 24 (+4.35%)
Mutual labels:  calendar
go-sunrise
Go package for calculating the sunrise and sunset times for a given location
Stars: ✭ 42 (+82.61%)
Mutual labels:  calendar
add2calendar
📆 Allow you to add event to calendar easier
Stars: ✭ 51 (+121.74%)
Mutual labels:  calendar
calendarium-romanum
liturgical calendar library (Roman Catholic, post-Vatican II)
Stars: ✭ 37 (+60.87%)
Mutual labels:  calendar

markdown-it-calendar

NPM version Standard - JavaScript Style Guide

Plugin for using markdown syntax to make a beautiful calendar for markdown-it markdown parser.

With this plugin you can create a calendar <div> using markdown like:

:::calendar 2017 4
** Write your to-do-things. **
:::

Imgur

Prerequire

Installation

npm install markdown-it-calendar --save

Use

in script

const md = require('markdown-it')
md.use(require('markdown-it-calendar'))

in markdown

  1. Set Year, Month (ex: 2017 04), then it will render the correct calendar.
:::calendar year month
:::
  1. Write your day-schedule
  • Using -, +, * be a marker, just like writting ul (no-sequence list).
  • Using [ ,] add EventTitle, then you can add Description after one space ' ' of eventTitle.
  • If the day has a big event or important meanings, you can add DayTitle after Date.
:::calendar Year Month
- Date DayTitle
  - [EventTitle1] Description1
  - [EventTitle2] Description2
:::
**Support original markdown syntax in calendar.

Syntax Example

Basic syntax

:::calendar 2017 4
- 1 today is good
    - [Title1] Description1
    - [Title2] Description2

- 23
    - [Title3] Description4
:::

Travel, Todo calendar

:::calendar 2017 4
- 1 Day1
    - [checking] 8:00 at Taipei Taoyuan airport
    - [arrive] 5-stars hotel.

- 2 Day2
    - [shopping] NO BUDGET!!!
    - [dinner] NO on a diet!!!

- 3 Day3
  - [Back] I love home~
:::

Support original markdown syntax.

:::calendar 2017 4

- 3 ## Publish
    - [markdown-it-calendar] That's a amazing tool from [markdown-it](https://github.com/markdown-it/markdown-it).

- 10 [Update!!](https://www.npmjs.com/package/markdown-it-calendar)
    - [**v1.5.0**] **OMG!**
      - Add style dark.
      - Fix markdown original syntax bug.
:::

Config

Configs can be set directly in your markdown parser as per above examples, like this:

const md = require('markdown-it')
md.use(require('markdown-it-calendar'), {
  startMarker: "any marker you want"
})

Options

  • startMarker (default = :::calendar)
  • endMarker (default = :::)
  • PARAMS_REGEX (set regex for Year Month , default = /^(\((.*)\)){0,1}\s+(\d+)[ ]+(\d+)\s*$/)
  • DATE_REGEX (set regex for - Date DayTitle, default = /^[+*-]\s+(\d{1,2})(\s(.*))?$/)
  • EVENT_REGEX (set regex for - [EventTitle1] Description1, default = /^[-*+]\s*\[(.*?)\]\s*(.*)$/)

License

© MIT

Standard - JavaScript Style Guide

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].