-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: switch to serilog feat: add highlightjs feat: add markdown service
- Loading branch information
1 parent
2eb9254
commit 4259ffd
Showing
21 changed files
with
1,135 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
namespace Services | ||
|
||
|
||
open Markdig | ||
|
||
type MarkdownService = | ||
abstract toText: string -> string | ||
abstract toHtml: string -> string | ||
|
||
|
||
module Markdown = | ||
|
||
let getMarkdownService(markdownConfig: MarkdownPipeline) : MarkdownService = | ||
{ new MarkdownService with | ||
member _.toText text = | ||
Markdown.ToPlainText(text, markdownConfig) | ||
|
||
member _.toHtml text = Markdown.ToHtml(text, markdownConfig) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import "/libs/highlight/js/languages/bash.min.js"; | ||
import "/libs/highlight/js/languages/csharp.min.js"; | ||
import "/libs/highlight/js/languages/css.min.js"; | ||
import "/libs/highlight/js/languages/fsharp.min.js"; | ||
import "/libs/highlight/js/languages/javascript.min.js"; | ||
import "/libs/highlight/js/languages/json.min.js"; | ||
import "/libs/highlight/js/languages/pgsql.min.js"; | ||
import "/libs/highlight/js/languages/plaintext.min.js"; | ||
import "/libs/highlight/js/languages/sql.min.js"; | ||
|
||
document.addEventListener("DOMContentLoaded", function () { | ||
hljs.highlightAll(); | ||
}); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.