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

Customizing default elements #17

Closed
JoshJacobAtHanson opened this issue Jan 6, 2017 · 1 comment
Closed

Customizing default elements #17

JoshJacobAtHanson opened this issue Jan 6, 2017 · 1 comment

Comments

@JoshJacobAtHanson
Copy link

I have the need for the header element to have a specific line height (added as an NSAttributedString attribute during parsing). I'm not seeing a straightforward way to do this. Have thought about:

  1. Subclass MarkdownHeader and replace MarkdownParser.header with subclass instance. However, MarkdownParser.header is defined with let and can't be updated.

  2. I could add a custom element with the same regex to replace the header-defined text before the default element could parse it. However, custom elements are currently parsed after default elements.

Are there other solutions I'm not seeing. If I were to fork, is there a suggested option that would be more acceptable to a pull request back into core project?

Thanks for all the work so far. Like having a lightweight and Swift option for Markdown.

  • josh jacob
@bmoliveira
Copy link
Owner

Hey, sorry for the really long delay responding, I'm closing this issue due to inactivity, but, you are welcomed to contribute with a solution for this!

Thank you very much

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

No branches or pull requests

2 participants