Redwyn / fTerm

A terminal-based F-Chat client that is meant to be easy to use.
MIT License
0 stars 0 forks source link

Implement bbcode processing #9

Open Redwyn opened 2 years ago

Redwyn commented 2 years ago

I'm providing an update here for anyone who may be tracking progress on the client, I have gotten a partial implementation for a custom BBcode parser written. I did this in the span of a few hours so while it kind of works, it does not consistently detect tags and I haven't quite figured out why yet. Determining which tags are supposed to match up is determined by tracking depth (how many layers deep are we) and pairing up tags of the same type and depth.

Additional info:

Work is exhausting me now that I'm back from sick leave so I'll likely only be able to chip away at this little by little on the weekends. However, I am expecting to have this feature working before Wednesday if I can find the time.

Redwyn commented 2 years ago

I've worked out some issues with how the existing portion of the bbcode parser works, however I have gotten stuck at actually rebuilding the provided string with correct formatting.

This is still being worked on but could take me a bit longer than anticipated.