using Lectionary
= calendar_week() wk
7-element Vector{Union{Nothing, LiturgicalDay}}:
the fifth Sunday of Easter, April 28, 2024
nothing
nothing
nothing
nothing
nothing
nothing
Package version: 0.2.0
May 3, 2024
Incomplete draft content.
Notes:
Collect a calendar week: the result is a Vector of LiturgicalDay
s.
7-element Vector{Union{Nothing, LiturgicalDay}}:
the fifth Sunday of Easter, April 28, 2024
nothing
nothing
nothing
nothing
nothing
nothing
Format a Markdown table with a column for each day:
mdlines = [
"| Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday |",
"| --- | --- | --- | --- | --- | --- | --- |"
]
oneweek = []
for litday in wk
if isnothing(litday)
push!(oneweek," ")
else
push!(oneweek, string(litday))
end
end
wkstring = "| " * join(oneweek, " | ") * " |"
push!(mdlines, wkstring)
In an environment like Pluto, VS Code, or with quarto publish, we can use the Markdown
package’s parse
function to create displayable output: