Re:Compose with Markdown in Google Docs
by mderazon on Tuesday March 29, 2022 @04:52PM
(#30848211)
Would be really nice to have code md syntax in Google docs. The simple formatting is not such a game changer
[ Parent
| on HN ]
When I was at Google, we used an addon to do that. I think it might be this one? Not sure since there was a separate addon repo with internal and specific whitelisted addons.
https://workspace.google.com/marketplace/app/code_blocks/100... https://github.com/alexwforsythe/code-blocks
Re:Compose with Markdown in Google Docs
by kappattack on Wednesday March 30, 2022 @05:01AM
(#30852886)
This is what I used in college. It works great, but its much slower and more tedious to use compared to markdown code blocks. At one point I switched from using google docs to using the export to pdf feature on a static site generator because I was writing documents with a ton of code blocks and inline code formatting. It saved me a ton of time highlighting code and clicking about in the side panel.
I know there are LaTeX addons that let you do things like $$\frac{1}{2}$$ and then render the entire document. Makes me wonder what it would take to do something similar for code.
Re:Compose with Markdown in Google Docs
by slashvar2701 on Wednesday March 30, 2022 @10:05AM
(#30855395)
When I need formated code in docs or slides, I use the copy/paste with style capability of browsers.
It works from rendered content but also from IDE.
It only seems to convert the markdown syntax to normal Docs formatting. Since Docs does not natively support the concept of a "code block", it would make sense that this is not supported.