Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enrich Markdown to allow user to choose text alignement #116

Open
LudovicDrtt opened this issue Sep 14, 2022 · 1 comment
Open

Enrich Markdown to allow user to choose text alignement #116

LudovicDrtt opened this issue Sep 14, 2022 · 1 comment
Labels
enhancement New feature or request feature New feature

Comments

@LudovicDrtt
Copy link
Contributor

Actual behavior

Actually text of post and club description is left align with no possibility to change it. It look quite awful in club presentation when the presentation is short.

Suggestion

I suggest to enrich Markdown syntax to allow user to choose the text alignment of a single paragraph. We can take our inspiration from this enriched Markdown syntax

@LudovicDrtt LudovicDrtt added enhancement New feature or request feature New feature labels Sep 14, 2022
@LudovicDrtt
Copy link
Contributor Author

I looked for ways to implement this feature.

The easiest way seems to allow the align attributes for style in django-markdownify. This can be done by editing the MARKDOWNIFY variable in settings.py according to markdownify documentation.

However, this solution doesn't enrich markdown syntax and is not user friendly (the user have to write html balise with style attr). To enrich markdown syntax, it seems that the solution is to write an extension to python-markdown (cf docs).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature New feature
Projects
None yet
Development

No branches or pull requests

1 participant