The attached markdown note will not display properly in Devonthink 4.x and 3.9.x neither in macOS Sequoia nor in macOS Tahoe.
Not only will the note not display, after the attempt to display the note in the main window of Devonthink, the whole preview pane stops functioning.
The note contains valid kubectl commands for a Kubernetes cluster. Save the content as markdown note and try to preview the note within Devonthink on macOS.
Best regards
R.
# kubectl go-template query examples
list of ports and name of service which uses the port
kubectl get svc --all-namespaces -o go-template='{{range .items}}{{range.spec.ports}}{{if .nodePort}}{{.nodePort}}{{"\t"}}{{.name}}{{"\n"}}{{end}}{{end}}{{end}}' | sort -g
list all ClusterIP Services with name, source and target port and cluster ip address
kubectl get svc --all-namespaces -o go-template='{{range .items}}{{if eq .spec.type "ClusterIP"}}{{range .spec.ports}}{{.port}}{{"\t"}}{{.targetPort}}{{end}}{{"\t"}}{{.spec.clusterIP}}{{"\t"}}{{.metadata.name}}{{"\n"}}{{end}}{{end}}' | sort -g
alle services mit definierter externen IP sowie den belegten Port ausgeben
kubectl get svc --all-namespaces -o go-template='{{range .items}}{{if eq .spec.type "ClusterIP"}}{{if .spec.externalIPs}}{{if gt (len .spec.externalIPs) 0}}{{range .spec.ports}}{{.port}}{{"\t"}}{{.targetPort}}{{end}}{{range .spec.externalIPs}}{{"\t"}}{{.}}{{end}}{{"\t"}}{{.spec.clusterIP}}{{"\t"}}{{.metadata.name}}{{"\n"}}{{end}}{{end}}{{end}}{{end}}' | sort -g
Um alle aktiven Pods aufzulisten, die ein Resource Limit fĂĽr `nvidia.com/gpu` haben, kannst du den folgenden `kubectl` Befehl verwenden:
kubectl get pods --all-namespaces -o=jsonpath='{range .items[?(@.spec.containers[*].resources.limits.nvidia\.com/gpu)]}{.metadata.namespace}{"\t"}{.metadata.name}{"\t"}{.spec.containers[*].resources.limits.nvidia\.com/gpu}{"\n"}{end}'
kubectl get pods --all-namespaces -o=jsonpath='{range .items[?(@.spec.containers[*].resources.limits.nvidia\.com/gpu)]}{.spec.nodeName}{"\t"}{.spec.containers[*].resources.limits.nvidia\.com/gpu}{"\t"}{.metadata.name}{"\t"}{.metadata.namespace}{"\n"}{end}' | sort | awk -F'\t' '{printf "%-12s %-5s %-45s %-30s\n", $1, $2, $3, $4}'
Sorry to hear that. Works fine here in DEVONthink 4.1. And it works in Byword independent of DEVONthink.
Something else going on. Maybe what you posted isn’t exactly the same as the file you have stored in DEVONthink? Missing invisible characters or something? Try copying what you posted into DEVONthink, and see if it works for you would be my first recommendation. Then go from there.
I think this might be irrelevant as from here looks like you used four spaces to make a code block. Maybe there is a max line length for code blocks? I don’t know–perhaps check the Multimarkdown spec. Are some “funny” characters in that text. Just a guess.
I don’t see DT crashing here, but switching between source and preview mode doesn’t work reliably. Converting to HTML is impossible – no HTML file, no error message. Then I tried to break down the lines; no change. Finally, I pasted everything into MultiMarkdownComposer, which displayed the MD just fine.
Just for completeness: I also tried using code fences instead of indentation with four spaces, which didn’t change anything.
So, there definitely seems to be a problem with DT’s MD rendering here. Did you define your own CSS?
I copied the note from my post to a new note in DEVONthink. I tested it in DEVONthink 4.1 on Sequoia and DEVONthink 4.1 on Tahoe. I can view the note in edit view of a markdown file. But a rendered view of the markdown file will fail.
I tried to use the “normal” way of defining a code block. The result is the same.
DEVONthink it self did not crash. Only the preview “crashes”. The preview pane is than no longer able to preview any content e.g. pdf, markdown, html, webarchive after I tried to preview the markdown note from my initial post.