Commit Graph
17 Commits
Author SHA1 Message Date
Sebastian Martinez 196beca898 Change titles to font-weight semibold 2024-01-23 10:14:37 +01:00
Sebastian Martinez 29a53f1ff6 Improve markdown footnotes 2023-12-11 15:00:50 +01:00
Sebastian Martinez 08683dc9e9 Update deps
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-08-23 10:07:15 +02:00
Sebastian Martinez f631c7f171 Fix absolute links with files in markdown
We had a regression because of introducing marked-linkify-it, which took
links for CONTRIBUTING.md or HACKING.md as domains of a new page instead
than files to be navigating to.

This commit sets the `fuzzyLink` option for marked-linkify-it to false,
which disables this behavior

Also tests that the browser tree expands itself when navigating to a
file inside a directory

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-07-22 08:02:00 +02:00
Sebastian Martinez e4a051b17a Add auto linking in Markdown components
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-07-19 09:07:01 +02:00
Sebastian Martinez 78b988af95 Replace custom extension with marked-katex-extension
- Add a visual test to check math rendering

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-07-17 17:18:07 +02:00
Sebastian Martinez 69946f5d8c Replace marked namespaces with Marked instance
Based on a new addition to marked, this commits replaces the imported
marked namespaces with a Marked class, that doesn't change when
`marked.use` introduces new options or extensions.

Also changes the naming slighty to use `markdown` as module, so it
sounds more generic.

Reference: https://github.com/markedjs/marked/pull/2831

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-07-17 14:47:53 +02:00
Rūdolfs Ošiņš 74fa05cf26 Rewrite markdown link navigation
Signed-off-by: Thomas Scholtes <geigerzaehler@axiom.fm>
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-07-09 15:17:43 +02:00
Sebastian Martinez c04d399cf3 Revert HTML tag escaping
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-06-30 10:01:14 +02:00
Sebastian Martinez ecabe9b7a8 Escape html tags in marked found outside of code blocks
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-06-26 13:00:20 +02:00
Sebastian Martinez 380366be2e Fix padding and linebreaks in markdown
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-05-17 12:55:43 +02:00
Sebastian Martinez 02aa591c84 Lowercase all markdown inline link and heading ids
By having different casings between heading and link ids we avoid
getting case mismatches on navigation.

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-05-17 11:00:04 +02:00
Sebastian Martinez b87a6735b5 Add hr before first footnote in footer
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-05-08 15:44:00 +02:00
Sebastian Martinez 03c05edeca Updates marked to v5.0
Disables some of the deprecated options to avoid the console warnings.
Removes obfuscation of plain-text emails.

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-05-08 10:35:24 +02:00
Sebastian Martinez 534430b2ec Fix relative markdown file links
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-04-14 17:05:42 +02:00
Sebastian Martinez a6bc6d3c27 Fix small markdown spacing issue
Adds a listitem renderer overwrite to marked which
wraps everything that is inside a <li> which isn't only single <p> tag
into a <div class="list-content"> which we give a margin: 1rem 0;

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-04-03 14:30:58 +02:00
Sebastian Martinez c8b8c18064 Add footnotes support to markdown
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-01-31 12:34:24 +01:00