Skip to content

Instantly share code, notes, and snippets.

@the-admax
the-admax / YouTrack+Tex.md
Last active January 22, 2022 09:30
YouTrack MathJax (lame patch v1.1)

YouTrack MathJax patch

As IntelliJ team [has neither plans][JT-22483] on integration of LaTeX support into YouTrack, nor gives any evidence of [steps to towards it][JT-19637], I've made my own "crutch".

It intercepts invocations of getMarkupPreview used in live preview, and [signals MathJax][mathjax:typeset]/KaTex to rerender formulas. Static wiki markup rendering bypasses getMarkupPreview, and I haven't figured out yet a better solution than plain setInterval.

Suggestions are welcome!

@the-admax
the-admax / wget-patch.sh
Last active October 1, 2015 08:11
Tiny script patching wget-1.14 sources for LTIB against Perl5.18 pod2man bug
#!/bin/bash
# Originally posted for https://community.freescale.com/thread/324608
# some config. Adapt to your env
#WGET=$(sort dist/lfs-5.1/wget/wget-ssl.spec | awk '/^Name|Version/{print $3}' | xargs printf "%s-%s\n")
WGET_PKG=wget-1.14
LTIB_ROOT=/opt/ltib
#####################################