Skip to content

quail-ink/goldmark-enclave

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

goldmark-enclave

This goldmark extension uses Markdown's image syntax ![]() to support other objects.

Supported Objects

Planned Objects

Usage

  markdown := goldmark.New(
    goldmark.WithExtensions(
      enclave.New(),
    ),
  )
  var buf bytes.Buffer
  if err := markdown.Convert([]byte(source), &buf); err != nil {
    panic(err)
  }
  fmt.Print(buf)
}

And then you can use it like this:

Youtube Video:

![](https://youtu.be/dQw4w9WgXcQ?si=0kalBBLQpIXT1Wcd)

Bilibili Video:

![](https://www.bilibili.com/video/BV1uT4y1P7CX)

Twitter Tweet:

![](https://twitter.com/NASA/status/1704954156149084293)

TradingView Chart:

![](https://www.tradingview.com/chart/AA0aBB8c/?symbol=BITFINEX%3ABTCUSD)

Quail List and Post

![](https://quail.ink/blog)

![](https://quail.ink/blog/p/extended-markdown-syntax?theme=dark)

Image with caption and giving it a width:

![](https://your-image.com/image.png?w=100px "This is a caption")

Demo

Live Demo

Options

  • theme: The theme of the TradingView chart, twitter tweet and quail widget. Default: light
    • e.g. ![](https://twitter.com/NASA/status/1704954156149084293?theme=dark)
  • width / w and height / h: The width and height of images. Default: auto
    • e.g. ![](https://your-image.com/image.png?w=100px)

Installation

go get github.com/quail.ink/goldmark-enclave

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages