3 ms·
Reminds me of generating webpages from Microsoft Word. The issue is that the HTML looks pretty awful. For example, on the webpage, there's a bunch of tags that
by ipsum2 6y ago
Reminds me of generating webpages from Microsoft Word. The issue is that the HTML looks pretty awful. For example, on the webpage, there's a bunch of tags that don't do anything and the inline style makes it difficult if you wanted to change the font family or color.
</span></p><p style="padding:0;margin:0;color:#000000;font-size:11pt;font-family:"Arial";line-height:1.15;orphans:2;widows:2;height:11pt;text-align:left"><span style="color:#000000;font-weight:400;text-decoration:none;vertical-align:baseline;font-size:11pt;font-family:"Arial";font-style:normal"></span></p><p style="padding:0;margin:0;color:#000000;font-size:11pt;font-family:"Arial";line-height:1.15;orphans:2;widows:2;text-align:left"><span style="color:#000000;font-weight:400;text-decoration:none;vertical-align:baseline;font-size:11pt;font-family:"Arial";font-style:normal">
- marvinblum 6y agoYeah that's pretty ugly. Emvi [1] generates clean HTML. Here is an example for that: https://wiki.sts.wtf/read/Arma-3-Sync-oVlaBeQdAY https://wiki.sts.wtf/read/Arma-3-Sync-oVlaBeQdAY (the part within the "article-content" div). [1] https://emvi.com/ https://emvi.com/
- baxtr 6y agoUse “Show HN” to show case it :-)
- deleted 6y ago[deleted]
- marvinblum 6y agoWe showed Emvi and the new user interface we are working on right now already :) https://news.ycombinator.com/item?id=22640054 https://news.ycombinator.com/item?id=22640054
- RupertWiser 6y agoThe alternative is to hook into the Google Docs API which gives you a more structured response which you can then self style. Exporting HTML was the easy way out for me. I haven’t investigated the accessibility impact but the file sizes are minimal so it didn’t feel like a massive trade off.
- Jaruzel 6y agoIn Word, if you save the doc as 'filtered HTML' you get much cleaner HTML.