-
-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
Hi!
As a naïve way to make laas to work with markdown-mode I modify the laas-mathp function (https://github.com/tecosaur/LaTeX-auto-activating-snippets/blob/master/laas.el#L60) to use laas-org-mathp to know if we are in a latex block in Markdown documents.
(defun laas-mathp ()
"Determine whether point is within a LaTeX maths block."
(cond
((derived-mode-p 'latex-mode) (texmathp))
((derived-mode-p 'org-mode) (laas-org-mathp))
((derived-mode-p 'markdown-mode) (laas-org-mathp))
(t (message "LaTeX-auto-activated snippets does not currently support math in any of %s"
(aas--modes-to-activate major-mode))
nil)))
At least in my tests, everything is working fine. I can trigger all the snippets without problems.
I don't know if it's worth it to add it in into master.
Thanks.
Metadata
Metadata
Assignees
Labels
No labels