File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -256,10 +256,14 @@ separated by an equal sign `=`. Options are separated by spaces. Options can be
256256used to modify the behaviour of markup tags, for example changing the target of
257257a link.
258258
259+ <mf2-interactive >
260+
259261``` mf2
260- This is a {#link to="home" }link{/link}.
262+ This is a {#link to=|https://example.com| }link{/link}.
261263```
262264
265+ </mf2-interactive >
266+
263267It is best practice to not mix styles into messages too much - instead, use
264268markup tags to add semantic meaning and selectors to text, and let the
265269application decide how to render the message. This makes it easier to change the
Original file line number Diff line number Diff line change @@ -258,7 +258,7 @@ export default function IndexPage({ comp }: any) {
258258 < code > link</ code >
259259 </ td >
260260 < td class = "border px-2" >
261- Add a link, pointing to the < code > url </ code > option.
261+ Add a link, pointing to the < code > to </ code > option.
262262 </ td >
263263 </ tr >
264264 < tr >
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ export function formatMessageToHTML(
5151 }
5252 case "link" : {
5353 const link = document . createElement ( "a" ) ;
54- link . href = part . options ?. url as string ;
54+ link . href = part . options ?. to as string ;
5555 link . target = "_blank" ;
5656 link . rel = "noopener noreferrer" ;
5757 currentElement . appendChild ( link ) ;
You can’t perform that action at this time.
0 commit comments