From 2351a8563f67cef842bece987571204912721497 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Wed, 27 Dec 2023 06:34:57 +0200 Subject: mcq: Update display of correct answer --- gnosis.el | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gnosis.el b/gnosis.el index 35d8432..72f300d 100644 --- a/gnosis.el +++ b/gnosis.el @@ -110,6 +110,15 @@ Example: (propertize answer 'face 'gnosis-face-correct-answer) "\nYour answer: " (propertize user-choice 'face 'gnosis-face-user-choice)))))) +(defun gnosis-display--correct-answer-mcq (answer user-choice) + "Display correct ANSWER & USER-CHOICE for MCQ note." + (with-current-buffer + (switch-to-buffer + (get-buffer-create "*gnosis*")) + (insert (concat "\n\nCorrect answer: " + (propertize answer 'face 'gnosis-face-correct-answer) + "\nYour answer: " + (propertize user-choice 'face 'gnosis-face-user-choice))))) (defun gnosis-display--extra (id) "Display extra information for note ID." -- cgit v1.2.3