Skip to content

Conversation

@uniqname
Copy link
Collaborator

@uniqname uniqname commented Apr 7, 2021

This is just a POC to get an idea for where my head is at on this. I used a definition list in markdown rather than a table. Then made it table like on desktop sizes. This could be generalized for many situations where one might be inclined to reach for a table for formatting.

Conceptually, this example works like a table for each row, or each row in the table having its own header. It would not be too much more work to make it even more table like by hiding subsequent "headers" and collapsing the gap between "rows".

Mobile view

Screen Shot 2021-04-06 at 7 34 00 PM

Desktop view

Screen Shot 2021-04-06 at 7 31 54 PM

@uniqname uniqname added the question Further information is requested label Apr 7, 2021
@coolaj86
Copy link

coolaj86 commented Apr 8, 2021

A couple of notes for making this work technically

  • definition lists are space-sensitive
    This is a definition list
    
    : thing goes here
    This is not
    : this is just text
  • sd needs -s for non-regexp mode

Still not rendering as expected...

https://alpha.gchomebrew.com/exploites.html

@coolaj86
Copy link

coolaj86 commented Apr 8, 2021

I made some updates to fix the issues I could see, but it didn't result in a proper render. I'm going to refactor build.sh and bring it into main and perhaps create an example branch, so that we have all of the pieces we need in this repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

question Further information is requested

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants