{
const currentTime = rangeSignal
const slider = Inputs.range([0, 10], { step: 1 });
const formatSatisfaction = (v) => {
return v < 3 ? ":-(" : v < 5 ? ":-|" : v < 7 ? ":-)" : ":-*";
};
return rmd`
This markdown cell shows how static markdown can be combined with dynamic values without cells reloading.
Current GMT Time: ${currentTime}
| Your satisfaction level is from 10)
|-------------
| ${slider} | <big>a</big>
|Please leave a comment: | Raw content of your comment:
|------------------------|-------------
| | <pre style="max-height: 150px; overflow: auto; font-size: 0.5em;">${commentsSignal}</pre>
|Your Formatted Comment Preview:
|-------------------------------------
| ${computed(() => md([commentsSignal.value]))}
*Thank you for watching!*
---
`;
}