RNS Logo

rns.recipes

◈ 9ce92808be498e9e05590ff27cbfdfe4

Ps, in the nomadnet version of this site, micron tags are not escaped

Started by Anonymous ·

Anonymous
#1

In the "Full git nodes over Reticulum - Help testing" thread after r8io reply the formatting of the page gets permanently messed up and gets right aligned after their post and every post there after becomes right aligned instead of left aligned

If it matters; this occurred exactly when there was 18 replies on the most recent nomadnet version at the time of posting

Anonymous
#2
from RNS.Utilities.rngit.util import convert_markdown_to_micron
micron_formatted = convert_markdown_to_micron(markdown_formatted)

If you want to go wild and have full syntax highlighting for code blocks, ensure pygments is installed on the system and then do:

from RNS.Utilities.rngit.util import MarkdownToMicron
from RNS.Utilities.rngit.highlight import SyntaxHighlighter

converter = MarkdownToMicron(max_width=self.MAX_RENDER_WIDTH, syntax_highlighter=SyntaxHighlighter())
micron_formatted = converter.format_block(markdown_formatted)
Zenith 06ddae88c732079d...
#3

Fixed, sorry about that

I've also added code highlighting and a few other tweaks.

Mark 8dd57a7382268096...
#4

Awesome! It's looking very nice now :)

Post a Reply

Supports Markdown: **bold**, *italic*, `code`, ```code blocks```, [links](url)

Log in to upload images

Quote
Copied to clipboard