mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-27 23:04:05 -06:00
9 lines
546 B
Markdown
9 lines
546 B
Markdown
<%*
|
|
var sel = window.getSelection && window.getSelection();
|
|
if (sel && sel.rangeCount > 0) {
|
|
var selected = sel.getRangeAt(0).toString();
|
|
}
|
|
const choice = await tp.system.suggester(["Note", "Abstract, Summary", "Info", "Todo", "Important, Tip", "Check, Success", "Question, FAQ", "Warning", "Failure, Missing", "Danger, Error", "Bug", "Example", "Quote, Cite"], ["Note", "Abstract, Summary", "Info", "Todo", "Important", "Check", "Question", "Warning", "Failure", "Danger, Error", "Bug", "Example", "Quote"]);
|
|
-%>
|
|
> [!<%choice%>]
|
|
> <%selected%> |