From 3776c1db9350a9391f59ba109152448304940e64 Mon Sep 17 00:00:00 2001 From: surdeus Date: Sat, 2 Mar 2024 23:30:22 +0500 Subject: [PATCH] feat: more Markdown extensions. --- server/main.go | 3 ++- wiki/some-file-name.pmd | 11 +++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/server/main.go b/server/main.go index cec5b7e..c5c88d6 100644 --- a/server/main.go +++ b/server/main.go @@ -43,7 +43,8 @@ type Server struct { func (srv *Server) makeMdParser() *parser.Parser { return parser.NewWithExtensions( parser.CommonExtensions | parser.AutoHeadingIDs | - parser.NoEmptyLineBeforeBlock, + parser.NoEmptyLineBeforeBlock | parser.Attributes | + parser.Tables, ) } diff --git a/wiki/some-file-name.pmd b/wiki/some-file-name.pmd index 9652058..73f102f 100644 --- a/wiki/some-file-name.pmd +++ b/wiki/some-file-name.pmd @@ -1 +1,12 @@ +{#shit .class1 .class2} +# Header + shit +teahuste| ehtua | shit +--------|-------------|-------------- +cock| dick|die + +```go +func main() { +} +```