Skip to content

Commit

Permalink
add tag
Browse files Browse the repository at this point in the history
  • Loading branch information
alixander committed Dec 6, 2024
1 parent 362b520 commit 98f8731
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion d2js/js.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func jsGetParentID(this js.Value, args []js.Value) interface{} {
return "root"
}
mk.Key.Path = mk.Key.Path[:len(mk.Key.Path)-1]
return strings.Join(mk.Key.IDA(), ".")
return strings.Join(mk.Key.StringIDA(), ".")
}

return ""
Expand Down
4 changes: 4 additions & 0 deletions lib/textmeasure/markdown_js.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@ func MeasureMarkdown(mdText string, ruler *Ruler, fontFamily *d2fonts.FontFamily
func RenderMarkdown(m string) (string, error) {
return "", nil
}

func ReplaceSubstitutionsMarkdown(mdText string, variables map[string]string) string {
return mdText
}
2 changes: 2 additions & 0 deletions lib/textmeasure/substitutions.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build !wasm

package textmeasure

import (
Expand Down

0 comments on commit 98f8731

Please sign in to comment.