Titus

Results 869 comments of Titus

I mainly need `addText`, `openNode`, and `closeNode` (new names/slightly different, is fine), and I think `addSublanguage` and `addKeyword` can be sort-of merged into `openNode`? For names, you could go with...

See https://github.com/rehypejs/rehype-slug/issues/13. Your case is interesting and different though. GH does some things like this for footnotes in comments (which are numbered, so, `#fn-1`). Where they prefix with a hash...

I don’t quite understand why. What `` use requires this? How does `base` affect these hashes?

> but anchor links will not. > it will not consider/include the base tag. Why is this a limitation? This behavior makes sense to me. I don’t think it should...

> And I want content editors to just use relative links, that should work under every domain/base path. That’s a fine use case but I don’t understand what `base` or...

Oh, I was thinking of the inverse, due to the above: > Relative links will use the href attribute from the base tag, but anchor links will not. Now it...

This still seems like, well, what `base` elements are for: to rewrite all relative (including paths, searches, anchors) URLs. Why have a `base` element to rewrite some of those, but...

I checked that in a browser and it's correct?

I think you’re using the base element wrong. The base should in the second example be `/branch-1/wiki/some/page` to support truly relative values. This also affects all your relative links. Say...

Perhaps you are talking about absolute paths btw: `href="/xxx"` is an *absolute* path, and `yyy`, `./zzz`, `../aaa`, and `#bbb` are all really relative. Absolute values are resolved from `new URL(base.href,...