Skip to content

Commit

Permalink
Journal Markdown render
Browse files Browse the repository at this point in the history
  • Loading branch information
spech66 committed Apr 2, 2023
1 parent bd18b3b commit b821894
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions LifelogBb/LifelogBb.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.18.1" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="7.0.5" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0" />
<PackageReference Include="Westwind.AspNetCore.Markdown" Version="3.11.0" />
</ItemGroup>

<ItemGroup>
Expand Down
11 changes: 7 additions & 4 deletions LifelogBb/Views/Journals/Details.cshtml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@model LifelogBb.Models.Entities.Journal
@addTagHelper *, Westwind.AspNetCore.Markdown
@model LifelogBb.Models.Entities.Journal

@{
ViewData["Title"] = "Journal";
Expand All @@ -8,11 +9,13 @@
<div class="container-xl">
<div class="row row-cards">
<div class="col-12">
<div class="card mb-3">
<div class="card-body">
<markdown markdown="Text" />
</div>
</div>
<div class="card">
<div class="card-body">
<div class="mb-3">
@Html.DisplayFor(model => model.Text)
</div>
<dl class="row">
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.Category)
Expand Down
1 change: 0 additions & 1 deletion TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ ToDos and Features for LifelogBB.
- [Todos/Tasks](https://preview.tabler.io/tasks.html#) Kanban: Upcoming today, next 7 days, ...
- Habits: Timeline
- [Journal date grid](https://github.com/usememos/memos)
- [Journal Markdown](https://github.com/RickStrahl/Westwind.AspNetCore)
- [ ] Settings (Units, Start of week, ...)
- [ ] [iCal](https://github.com/rianjs/ical.net) for Goals/Habits (Time Boxing/Blocking)/BucketList/...
- Alarms
Expand Down

0 comments on commit b821894

Please sign in to comment.