Skip to content

Commit

Permalink
Links
Browse files Browse the repository at this point in the history
- fix header that have links. put link inside instead of wrapping
- remove from link typography class that made issues
  • Loading branch information
elad2412 authored and TorstenDittmann committed Dec 7, 2023
1 parent 876c058 commit d7298b8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/markdoc/nodes/Heading.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
</script>

{#if id}
<a href={`#${id}`} class="aw-link">

<svelte:element
this={tag}
{id}
Expand All @@ -62,9 +62,9 @@
class:aw-snap-location-references={id && inReferences}
class="{headingClass} aw-u-color-text-primary"
>
<slot />
<a href={`#${id}`} class=""><slot /></a>
</svelte:element>
</a>

{:else}
<svelte:element
this={tag}
Expand Down
13 changes: 11 additions & 2 deletions src/markdoc/nodes/Link.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,19 @@

<a
class="aw-link is-inline"
class:aw-paragraph-md={!inTable && isDocs}
class:aw-paragraph-lg={!inTable && !isDocs}
{href}
{title}
{target}
{rel}><slot /></a
>

<!-- previus elad change -->
<!--<a-->
<!-- class="aw-link is-inline"-->
<!-- class:aw-paragraph-md={!inTable && isDocs}-->
<!-- class:aw-paragraph-lg={!inTable && !isDocs}-->
<!-- {href}-->
<!-- {title}-->
<!-- {target}-->
<!-- {rel}><slot /></a-->
<!--&gt;-->

0 comments on commit d7298b8

Please sign in to comment.