Skip to content

Commit

Permalink
Update macro import
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremiahpslewis committed Jul 13, 2021
1 parent 5c1cf56 commit feea710
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions sample/Getting started.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ end
# ╔═║ 9b62f2c6-8037-486f-b8ec-a95b577b8d74
# Code targeted for potential inclusion in the Pluto.jl package:
begin
import Pkg
using Pkg
Pkg.add(PackageSpec(url="https://github.com/MichaelHatherly/CommonMark.jl",
rev="mh/interp"))
using CommonMark
import CommonMark: @cm_str
end

# ╔═║ b129ba7c-953a-11ea-3379-17adae34924c
Expand Down Expand Up @@ -71,6 +71,9 @@ cm"But what does `confusing_function` do? If you ever need help, click on πŸ“š *
If you don't see it, then your screen is too small! Maybe you need to zoom out?"

# ╔═║ e11e1660-9549-11ea-22f6-8bb53dc045fe
cm"Now we know to prepare $(length(consumption)) cans. Let's stock up!"

# ╔═║ 745a4584-954a-11ea-028e-59011f268ec6
cans_in_stock = "πŸ₯«πŸ₯«πŸ₯«πŸ₯«"

Expand All @@ -84,6 +87,9 @@ end
# ╔═║ eac62fea-954e-11ea-2768-39ce6f4059ab
# cans_in_stock = "πŸ₯«πŸ₯«πŸ₯«πŸ₯«πŸ₯«"

# ╔═║ f27f90c2-954f-11ea-3f93-17acb2ce4280
cm"We have $(length(cans_in_stock)) cans of cat food, and our cats need $(length(consumption)). Try adding another cat to the neighborhood to see what changes!"

# ╔═║ 6c8e2108-9550-11ea-014d-235770ed4771
cm"## Saving cats and notebooks
Alright, we have a neighborhood full of well-fed cats. But oh no, here comes..."
Expand Down Expand Up @@ -153,12 +159,6 @@ confusing_function(text::String, array::Array) = repeat(text, length(array))
# ╔═║ a4a60262-9547-11ea-3a81-5bf7f9ee5d16
consumption = confusing_function("πŸ₯«", neighbors)

# ╔═║ e11e1660-9549-11ea-22f6-8bb53dc045fe
cm"Now we know to prepare $(length(consumption)) cans. Let's stock up!"

# ╔═║ f27f90c2-954f-11ea-3f93-17acb2ce4280
cm"We have $(length(cans_in_stock)) cans of cat food, and our cats need $(length(consumption)). Try adding another cat to the neighborhood to see what changes!"

# ╔═║ 1deaaf36-9554-11ea-3dae-85851f73dbc6
cm"**Have fun using Pluto!**
Expand Down

0 comments on commit feea710

Please sign in to comment.