Home Projects Portfolio Dashboard Export PDF Log in
HTML

Optimizing Asset Referencing: Transitioning from Markdown to HTML

The Waxtane project, a platform dedicated to community and culture, recently underwent a refinement process focused on how external resources are referenced within the application. We identified that relying on Markdown-based URL syntax for specific branding assets limited our flexibility in presentation and styling.

The Challenge

Previously, assets like the "Made in Senegal" badge were implemented using standard Markdown linking syntax. While convenient for quick documentation, this approach made it difficult to apply consistent CSS styling or manage the responsive behavior of these assets across different viewports.

The Transition

To improve maintainability, we shifted from Markdown formatting to direct HTML elements. By using standard HTML tags, we gain full control over the asset's attributes, such as class names for styling or explicit dimensions.

Before: Markdown Syntax

[Made in Senegal](https://example.com/assets/logo.png)

After: HTML Implementation

<a href="https://example.com/assets/logo.png" class="brand-badge">
  <img src="https://example.com/assets/logo.png" alt="Made in Senegal">
</a>

By moving to this structure, we separated the link container from the image rendering, allowing the design team to apply specific visual constraints through our stylesheet without modifying the underlying asset paths.

The Lesson

While Markdown is excellent for readability, structured HTML is often the better choice for elements that require specialized behavior or visual consistency. When your project grows, migrating static elements to structured HTML provides the hooks necessary for long-term design scalability.

Takeaway: Audit your project's static assets; if you find yourself needing to style links or images, move them out of Markdown and into controlled HTML wrappers to unlock better design flexibility.


Generated with Gitvlg.com

Optimizing Asset Referencing: Transitioning from Markdown to HTML
Seydina Limamou Laye Yade

Seydina Limamou Laye Yade

Author

Share: