Recent comments in /f/coolgithubprojects

EvitanRelta OP t1_j3ac48y wrote

Oh, in the link that u gave, the "align" attribute was transformed to:

{#centered-italicised-heading align="center"}

Is it possible to customise this to instead output as a HTML tag attribute? like:

<h1 align="center">
  ...
</h1>

what do u mean by "insert markdown into existing markdown"? could u give an example?

1

seanpuppy t1_j37gis3 wrote

I have some experience with it… basically it converts markup languages to a AST and you can convert that AST to lots of things. It does not preserve everything.

Eg: I write markdown with * as bullet points but if I convert from markdown -> ast -> markdown it will be formatted a little different

ive been working in a side project to extend / modify said AST to be able to “insert” markdown into existing markdown.

Im on mobile right now, half a cup of coffee, and ive got a meeting in a few mins but I can try and show an example command later if I remember

edit: Work is over and I found an online pandoc tool

Pandoc convert from html to markdown with your example

1

nashosted t1_j374sxn wrote

>Forumium is based on Laravel and the logic is specific. And thanks for pointing this info, I will mention Flarum on the repo too, the administration is based on a TALLkit (Filament) that makes it more extensible, and also some profile stats (visits, charts, ...)

Thanks for clarifying! Any plans to add a docker image? I'd like to give it a try if you can dockerize it.

2

EvitanRelta OP t1_j36l6kf wrote

Oh have I compared this to Pandoc?
No actually, I've never tried Pandoc before.

I'm not sure if Pandoc can be configured to do the same adaptive-preserving of HTML in markdown, like converting this HTML:

<h1><b>Italicised heading</b></h1>
<h1 align="center">
  <i>Centered italicised heading</i>
</h1>

to this markdown:

# _Italicised heading_

<h1 align="center">
  <i>Centered italicised heading</i>
</h1>

Anyone here with Pandoc experience who've tried this?

3

Least_Cattle_2153 OP t1_j36341x wrote

Yep it is based on the Flarum design the main difference is it that Forumium is based on Laravel and the logic is specific. And thanks for pointing this info, I will mention Flarum on the repo too, the administration is based on a TALLkit (Filament) that makes it more extensible, and also some profile stats (visits, charts, ...)

1

EvitanRelta OP t1_j328vdy wrote

Here's the repo if u wanna check it out or contribute! :D — https://github.com/EvitanRelta/htmlarkdown

You can try it out urself on this demo: https://evitanrelta.github.io/htmlarkdown/

It's my first (hopefully industry-standard) library so I'd love some feedback! (and any contributions, im the only contributor so far so pls send help)

2

antonyjr0 OP t1_j06f76s wrote

The reason is that, Hetzner is the safest and has clear pricing, also very Cheap. If the server runs for month by mistake it will only cost 50 euros at the worst case. Running ham clean will prevent this, and the builder will prevent this, I'm talking about the worst worst case.. Other cloud providers are not predictable like this, in the worst case you might end up with 1000 dollar bill.. Also hetzner gives 20TB bandwidth, no other provider gives that for this cheap. Also for GDPR since hetzner is a German company.

I will look into the broken link... There are containers for LOS builds, you can use docker too, just install and run in docker if you like in the recipe..

The recipe runs everything in tty terminal, so its just bare vps with all the los build tools installed automatically.

2

antonyjr0 OP t1_j05se50 wrote

Really good, you can use the tool with -k arg to keep the server even if the build fails, the stdout is saved in the server on /tmp, you inspect it to see what went wrong. Run ham clean to destroy all server and rerun. You give the tool a regular git repo URL or local dir. The entire git repo or local dir will be available on the server at /ham-recipe so you can put your patches and everything at the git repo itself. Run with ham get -k <user>@gh/<repo>

Make sure to run ham clean to destroy all build servers.

See my recipe for ref: https://github.com/ham-community/enchilada-los19.1

ham converts the ~ to the ham community username, but you can give any valid github username.

1

antonyjr0 OP t1_j03vnvx wrote

Cool Github Project: https://github.com/antony-jr/ham

Website: https://antonyjr.in/ham

&#x200B;

For now only has recipe for Enchilada (aka. OnePlus 6, not 6T). It can build LineageOS 19.1 using a Android Signing Provided by You (See https://wiki.lineageos.org/signing_builds). The special thing about this build is that, the output of this build can be flashed and you can lock your bootloader for extra security. (Only available for OP6).

See https://forum.xda-developers.com/t/guide-re-locking-the-bootloader-on-the-oneplus-6t-with-a-self-signed-build-of-los.4113743/ for more info.

More instructions to follow in the website soonish. Looking for feedback and potential users.

1