Skip to content
CCPEDIAby Unity Nodes
App Development

Is it possible to embed stable github links?

3 posts347 views6 likesLast activity Apr 2020

  1. gerolfOP 1

    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?

  2. anthony 3

    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