Skip to content
Discussions/App Development/Is it possible to embed stable github links?Forum ↗

Is it possible to embed stable github links?

App Development3 posts322 views6 likesLast activity Apr 2020
GE
gerolfOP
Apr 2020

When posting a stable github link like daml/daml_kvutils.proto at 8e94c7af251eee175363b8b7f45e481a0aca90f7 · digital-asset/daml · GitHub in a github comment, github inlines the referred lines of code like this:
image

Is there a plugin for discourse that enables a similar behavior?

AN
anthony
Apr 2020

Done :slight_smile:

github.com

digital-asset/daml/blob/8e94c7af251eee175363b8b7f45e481a0aca90f7/ledger/participant-state/kvutils/src/main/protobuf/daml_kvutils.proto#L388-L390

  1. message DamlContractState {
  2. // The time from which the contract is active.
  3. google.protobuf.Timestamp active_at = 1;

Also seems those links don’t get code highlighting but gists do (sometimes), probably how GH chooses to produce them.

gist.github.com

https://gist.github.com/anthonylusardi-da/eab9f5a40fc81a4c1572408acc196fed

szabo_car_contract.hs
daml 1.2

module Main where

template LeaseOperation
  with
    creditor : Party
    owner : Party
    car : Party
    payment : Payment
This file has been truncated. show original

← Back to Discussions