Syslifters / sysreptor

Fully customisable, offensive security reporting solution designed for pentesters, red teamers and other security-related people alike.
https://docs.sysreptor.com
Other
1.47k stars 138 forks source link

Shifted Figure Reference Numbers #248

Open vysecurity opened 6 months ago

vysecurity commented 6 months ago

Since I updated from the traditional sysreptor version to the latest version, I found that the figCounter is now off.

I do:


![Caption here](){#superman}

And it says See Fig 1

Fig 2: Caption here.

It's off compared to the previous versions.

Example:

Thorium-2024-05-03 at 13 32 31@2x

Example CSS:

/* Figure */
figcaption::before {
  content: var(--prefix-figure) counter(figCounter) " - ";
}
.ref-figure::before {
  content: var(--prefix-figure) target-counter(attr(href), figCounter);
  font-weight: normal !important;
  font-family: "Source Code Pro", sans-serif !important;
  font-size: 9pt !important;
  font-color: #296a70 !important;
  color: #296a70 !important;
}
vysecurity commented 6 months ago

I fixed it by just referencing the master CSS and deleting all my stuff.

vysecurity commented 6 months ago

Another bug here though:

Thorium-2024-05-03 at 14 26 51@2x

See how the text is squished when you try to reference the figure. The space disappears.

MWedl commented 6 months ago

We are aware of the missing space after figure reference bug. The root cause is in weasyprint (HTML+CSS to PDF rendering library). Until the bug is fixed we recommend to use one of the following workarounds:

vysecurity commented 3 months ago

Any luck on fixing this?

MWedl commented 3 months ago

Not yet. The weasyprint issue is still open.