https://www.dendron.so/ logo
Join Discord
Powered by
# questions
  • k

    kevins8

    09/02/2020, 3:48 PM
    yeah, for sure. to that end, working on making all these behaviors configurable and landing on a reasonable sane default when starting out
  • r

    rhaynes

    09/02/2020, 4:03 PM
    @User any comment on the $ issue that I mentioned above?
  • k

    kevins8

    09/02/2020, 4:08 PM
    > Hi folks, just adding some information about my $ query above. My settings are set to katex for math rendering. Things look good in the regular preview but not in the markdown preview enhanced. Any other fix? @User where did you set these settings?
  • k

    kevins8

    09/02/2020, 4:09 PM
    i'm using the default settings and it seems to render fine
  • r

    rhaynes

    09/02/2020, 4:13 PM
    but try this line:
  • r

    rhaynes

    09/02/2020, 4:13 PM
    I had $100 but I would like $200
  • r

    rhaynes

    09/02/2020, 4:13 PM
    does it try to put everything between the two $ in math mode?
  • k

    kevins8

    09/02/2020, 4:14 PM
    > @User I got it working)) > You need to open settings and search for "Markdown-preview-enhanced: Math Inline Delimiters" > Then click edit in settings.json ā˜ļø have you tried the settings @User mentioned?
  • r

    rhaynes

    09/02/2020, 4:15 PM
    tried but unsuccessful with the preview enhanced, all is well with the regular preview
  • u

    user

    09/02/2020, 4:17 PM
    @User maybe reload the window after changing delimiter?
  • r

    rhaynes

    09/02/2020, 4:17 PM
    if you search setting for "math", you can toggle between katex and mathjax, mine is set to katex by default
  • r

    rhaynes

    09/02/2020, 4:17 PM
    I actually quit vs code and restarted
  • r

    rhaynes

    09/02/2020, 4:19 PM
    @kevins8 there are a couple of other settings there. Right now my settings are:
  • r

    rhaynes

    09/02/2020, 4:19 PM
    [ "$", "$" ], [ "\\(", "\\)" ]
  • k

    kevins8

    09/02/2020, 4:21 PM
    if you want to disable inline math, you can just remove the
    $
    altogether
  • k

    kevins8

    09/02/2020, 4:21 PM
    Copy code
    "markdown-preview-enhanced.mathInlineDelimiters": [
                [
                    "\\(",
                    "\\)"
                ]
            ]
  • k

    kevins8

    09/02/2020, 4:21 PM
    this means
    Copy code
    $$
    f(x) = cos(x)
    $$
    will still work
  • k

    kevins8

    09/02/2020, 4:21 PM
    but $100 will render normally
  • k

    kevins8

    09/02/2020, 4:22 PM
    you'll need to click the refresh icon after changing delimeters
  • r

    rhaynes

    09/02/2020, 4:29 PM
    hmmmm.... anyway to get it working without disabling the inline? And for some reason when I do $$y=\sin(x)$$ it interprets the \ as a line break and the font is wrong for the sin, same for \cos .... something is broken in my setup.
  • r

    rhaynes

    09/02/2020, 4:29 PM
    are you using mathjax or katex
  • j

    jojanaho

    09/02/2020, 4:34 PM
    > we had another user mention this too. will be releasing a option to disable this behavior, probably later today! @User I think the tree selection behavior is fine, it's just a tad too aggressive(?). Now when clicking on a file, it jumps to dendron treeview even if it's not visible
  • j

    jojanaho

    09/02/2020, 4:34 PM
    if it would jump there only when it's visible, then it probably wouldn't need a configuration option (?)
  • k

    kevins8

    09/02/2020, 4:36 PM
    great idea! looks like the tree view even has an event handler as well as props for that! https://code.visualstudio.com/api/references/vscode-api#TreeViewVisibilityChangeEvent
  • k

    kevins8

    09/02/2020, 4:37 PM
    > hmmmm.... anyway to get it working without disabling the inline? And for some reason when I do $$y=\sin(x)$$ it interprets the \ as a line break and the font is wrong for the sin, same for \cos .... something is broken in my setup. @User changing the delimeter to be something other than
    $
  • k

    kevins8

    09/02/2020, 4:37 PM
    maybe try
    %
    instead?
  • k

    kevins8

    09/02/2020, 4:37 PM
    as for what i'm using, whatever the default is. haven't fiddled with the math settings šŸ˜…
  • r

    rhaynes

    09/02/2020, 5:54 PM
    @User any idea why the behaviour is this way only with the enhanced preview?
  • r

    rhaynes

    09/02/2020, 6:25 PM
    And any idea why \ is causing a line break in math mode? What setting is causing it?
  • k

    kevins8

    09/02/2020, 8:16 PM
    @User hey, i haven't had a chance to look deeply into this but it seems like this is due to the delimeter setting
1...373839...757Latest