Convert .md --> .svg (and also .pdf and .html)

edited October 2025 in General

Comments

  • edited November 2025

    Here's the latest evolution of the .bat file that converts a .md to .svg
    https://hub.openingdesign.com/OpeningDesign/Utility_Apps/src/branch/main/Bat/convert_md_to_svg_html_only

  • For example, was able to quickly convert this markdown file to these SVG files.

    I then used Bonsai to compose these referenced SVG's on to a sheet. Here's the IFC file.

    Massteverugibrunopostletlangwalpa
  • Did you notice the weirdness with lowercase "L" and capital "I" weighting and italicization?
    Also a number of tables are rendering as text instead of as tables. "Suspended ceilings and Mechanical Systems" is the first one.
    Otherwise... neat!

  • Cool, though this needs to be a python module/wheel, and bonsai needs to run it for IFC document references that point to markdown files - so all project documentation is collected/referenced by the IFC, and the SVG/HTML can be regenerated by bonsai when the markdown updates. The generated SVG should live in sub folders as drawings are currently.

    theoryshawtlang
  • Did you notice the weirdness with lowercase "L" and capital "I" weighting and italicization?

    I did. I've noticed that happens with a few html to pdf converters.

  • @brunopostle said:
    Cool, though this needs to be a python module/wheel, and bonsai needs to run it for IFC document references that point to markdown files - so all project documentation is collected/referenced by the IFC, and the SVG/HTML can be regenerated by bonsai when the markdown updates. The generated SVG should live in sub folders as drawings are currently.

    sounds cool to me. ;)

  • @theoryshaw said:

    Did you notice the weirdness with lowercase "L" and capital "I" weighting and italicization?

    I did. I've noticed that happens with a few html to pdf converters.

    Oh, So this is happening here:

    .md -> .html -> .svg -> .pdf
                         ^^
    

    and the svg looks good in browsers? How peculiar!

  • I'm not 100% sure though.

Sign In or Register to comment.