{"action":"created","issue":{"url":"https://api.github.com/repos/gohugoio/hugo/issues/5431","repository_url":"https://api.github.com/repos/gohugoio/hugo","labels_url":"https://api.github.com/repos/gohugoio/hugo/issues/5431/labels{/name}","comments_url":"https://api.github.com/repos/gohugoio/hugo/issues/5431/comments","events_url":"https://api.github.com/repos/gohugoio/hugo/issues/5431/events","html_url":"https://github.com/gohugoio/hugo/issues/5431","id":379454503,"node_id":"MDU6SXNzdWUzNzk0NTQ1MDM=","number":5431,"title":"Better TeX support","user":{"login":"j2kun","id":2467754,"node_id":"MDQ6VXNlcjI0Njc3NTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/2467754?v=4","gravatar_id":"","url":"https://api.github.com/users/j2kun","html_url":"https://github.com/j2kun","followers_url":"https://api.github.com/users/j2kun/followers","following_url":"https://api.github.com/users/j2kun/following{/other_user}","gists_url":"https://api.github.com/users/j2kun/gists{/gist_id}","starred_url":"https://api.github.com/users/j2kun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j2kun/subscriptions","organizations_url":"https://api.github.com/users/j2kun/orgs","repos_url":"https://api.github.com/users/j2kun/repos","events_url":"https://api.github.com/users/j2kun/events{/privacy}","received_events_url":"https://api.github.com/users/j2kun/received_events","type":"User","site_admin":false},"labels":[{"id":271427868,"node_id":"MDU6TGFiZWwyNzE0Mjc4Njg=","url":"https://api.github.com/repos/gohugoio/hugo/labels/Wish","name":"Wish","color":"006b75","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-11-10T19:41:48Z","updated_at":"2018-12-02T17:57:00Z","closed_at":null,"author_association":"NONE","body":"The current Hugo docs provide quite the runaround to get math working for formulas involving underscores. User-contributed alternatives (like custom shortcodes) aren't much better for equation-heavy text. These approaches may be fine for someone starting a new blog, but it is not for me.\r\n\r\nI have an existing wordpress.com blog (jeremykun.com), which has hundreds of posts and 5000+ tex equations written over 7 years, which I'd like to convert to hugo. About half of these equations have underscores. I have successfully converted the posts to markdown as it would be used on a site like mathoverflow.com, using standard `$ax + b$` and `\\[x_1 + x_2\\]` equation fences.\r\n\r\nI'm also an engineer, and it's clear that adding regex hacks on top of regex hacks isn't sustainable. If I want to write for another 10 years, chances are good hugo will be replaced with some other engine and I'll have to migrate again.\r\n\r\nFrom what I've gathered, the obstacle is that the markdown rendering engine (Blackfriday) does not support ignoring content in equation fences, and the latex/katex rendering happens after the rendering engine has run. Is that correct? Is there anything else?\r\n\r\nIf so, I will happily talk to the devs of Blackfriday and add a feature that allows you to configure Blackfriday to ignore markdown characters within specified equation fences. (This seems like it should be trivially easy to me---they already do it for code---but there are always complications I'm sure)\r\n\r\nIf I did this, would it be possible to incorporate this feature into hugo? I'm imagining a part of the hugo base config.toml that specifies which latex equation fences you'd like to respect (default to none), and hugo simply passes those along to the rendering engine."},"comment":{"url":"https://api.github.com/repos/gohugoio/hugo/issues/comments/443527057","html_url":"https://github.com/gohugoio/hugo/issues/5431#issuecomment-443527057","issue_url":"https://api.github.com/repos/gohugoio/hugo/issues/5431","id":443527057,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MzUyNzA1Nw==","user":{"login":"j2kun","id":2467754,"node_id":"MDQ6VXNlcjI0Njc3NTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/2467754?v=4","gravatar_id":"","url":"https://api.github.com/users/j2kun","html_url":"https://github.com/j2kun","followers_url":"https://api.github.com/users/j2kun/followers","following_url":"https://api.github.com/users/j2kun/following{/other_user}","gists_url":"https://api.github.com/users/j2kun/gists{/gist_id}","starred_url":"https://api.github.com/users/j2kun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j2kun/subscriptions","organizations_url":"https://api.github.com/users/j2kun/orgs","repos_url":"https://api.github.com/users/j2kun/repos","events_url":"https://api.github.com/users/j2kun/events{/privacy}","received_events_url":"https://api.github.com/users/j2kun/received_events","type":"User","site_admin":false},"created_at":"2018-12-02T17:57:00Z","updated_at":"2018-12-02T17:57:00Z","author_association":"NONE","body":"@bwklein The problem is that the content is already written. (thousands of pages of text)\r\n\r\nI suppose you mean convert the posts from markdown to asciidoc and then have a workflow (somehow built into hugo?) from asciidoc to html. I will look into that, but maybe you could point me to how I would integrate an asciidoc -> html workflow into hugo? Does the hugo CLI do that?"}}
{"actor":{"display_login":"j2kun"}}