reversemarkdown-net icon indicating copy to clipboard operation
reversemarkdown-net copied to clipboard

Suggestion: dl, dt, dd could render as lists

Open brianary opened this issue 2 years ago • 2 comments

Mapping <dl> to an unordered list seems like a good fit, with <dt> mapping to <li>, and <dd> adding paragraph blocks to the previous list item.

brianary avatar Apr 10 '22 20:04 brianary

Looks like a good suggestion for conversion of dl,dt and dd, will look at implementing it.

mysticmind avatar Apr 11 '22 07:04 mysticmind

Any news on this ?

evilz avatar Aug 11 '22 13:08 evilz

@brianary @evilz quick note, I have added implementation to handle definition lists, will be available in the up coming release. I am looking at what other ones which I can include for 3.24.0.

In terms of implementation, it will be a nested lists.

<dl>
    <dt>Coffee</dt>
    <dd>Filter Coffee</dd>
    <dd>Hot Black Coffee</dd>
    <dt>Milk</dt>
    <dd>White Cold Drink</dd>
</dl>

The above will be converted as below:

- Coffee
    - Filter Coffee
    - Hot Black Coffee
- Milk
    - White Cold Drink

mysticmind avatar Aug 31 '22 10:08 mysticmind

So cool !

evilz avatar Aug 31 '22 10:08 evilz

Resolved via https://github.com/mysticmind/reversemarkdown-net/commit/485eefdb25eb31b006b5fcf5a415e9c583f4e1bb

mysticmind avatar Aug 31 '22 15:08 mysticmind