Register
handmade.network»Forums»Site Feedback»Formatting derped up
475 posts
Formatting derped up
2 years, 7 months ago
When I put in mesh.id in the code block it got replaced by some kind of uuid

1
    mesh_data d = load_mesh_data( mesh. id );


without the space between the dot and id:

1
    mesh_data d = load_mesh_data( mesh.id );

Jeroen van Rijn
256 posts / 3 projects

A big ball of Wibbly-Wobbly, Timey-Wimey _stuff_

Formatting derped up
2 years, 7 months ago Edited by Jeroen van Rijn on March 28, 2017, 3:09 p.m.
ratchetfreak
When I put in mesh.id in the code block it got replaced by some kind of uuid

1
    mesh_data d = load_mesh_data( mesh. id );


without the space between the dot and id:

1
    mesh_data d = load_mesh_data( mesh.id );



Cool beans. I'll have a look at it tomorrow.
Mārtiņš Možeiko
1983 posts / 1 project
Formatting derped up
2 years, 7 months ago
This is fun.
mesh.name also does something strange:
1
mesh.name
475 posts
Formatting derped up
2 years, 7 months ago
mmozeiko
This is fun.
mesh.name also does something strange:
1
mesh.name


Yeah I hit that one as well when typing up the history of vertex data post, naming is hard...
Jeroen van Rijn
256 posts / 3 projects

A big ball of Wibbly-Wobbly, Timey-Wimey _stuff_

Formatting derped up
2 years, 7 months ago
ratchetfreak
When I put in mesh.id in the code block it got replaced by some kind of uuid

1
    mesh_data d = load_mesh_data( mesh. id );


without the space between the dot and id:

1
    mesh_data d = load_mesh_data( mesh.id );



Alright, this is fixed. I'll now start reparsing all of the posts in the background, so existing posts with this bug will be properly formatted without needing to be edited.

This fix does disable linking up urls in code blocks, so if you have a url a bug report or some documentation in your code block for example, that url will now no longer be linked up. I could've made this fix such that urls were still linked in code blocks, but that would've been a much more involved rewrite of the highlighter and considering the upcoming move to MarkDown, I didn't think that would be a good use of my time right now.