-
-
Notifications
You must be signed in to change notification settings - Fork 70
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
allow image attributes in markdown #111
Open
vivganes
wants to merge
20
commits into
halilozercan:main
Choose a base branch
from
vivganes:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+1 for this PR. But we might need to check if the composer doesn't need extra info for all possible attributes. |
@halilozercan do you have any thoughts on this PR? |
…d in bigger sizes than just the line height.
This commit updates Compose Multiplatform to 1.4.1 AGP to 7.4.0 Kotlin to 18.10
Version updates; - Kotlin 1.9.20 - AGP 8.2.0 - Gradle 8.2 - Compose Multiplatform: 1.5.11 - Compose Compiler: 1.5.4 Api Updates; - Renamed RichText to BasicRichText - Renamed MaterialRichText to RichText - Renamed Material3RichText to RichText - Removed SetupMaterialRichText - Removed SetupMaterial3RichText
This fixes the start number of the markdown list. Markdown can start with any number except -ve numbers. Rest numbers are discarded
Markdown unfortunately does not have a universally agreed standard. Different flavors, libraries can parse Markdown content in their own ways. `richtext-commonmark` uses `Commonmark` spec and parser to convert any given markdown String into an intermediate Abstract Syntax Tree that has been defined internally since its release. The idea has always been to extract this ASTNode structure out of this module to enable custom parsing logic to be supplied from outside, and make `richtext-commonmark` only responsible for rendering the given tree using `richtext-ui`. This change introduces a new module named `richtext-markdown` which is actually just a rename of the existing `richtext-commonmark`. This new module also exposes its internal `AstNode` APIs to enable other modules to render their own AstNode structures. `richtext-commonmark` becomes a helper module which can parse any given string into an AstNode via `CommonmarkAstNodeParser`. Also, it still provides a `RichTextScope.Markdown` function that simply does the conversion asynchronously, then calls the `Markdown(AstNode)` flavor from `richtext-markdown`.
This change includes bunch of misc tech debt cleaning. - Use Compose Multiplatform dependencies instead of Google's Compose artifacts - Removed Previews from richtext-ui. - Renamed CodeBlock platform files. - Kotlin updated to 1.9.22 - Compose compiler update to 1.5.8 - Changed MarkdownSample to use CommonmarkAstNodeParser and do synchronous Markdown rendering.
Text formatting objects should not carry any lambdas for mainly serialization and also control of link clicks should be on a click handler specified at Composable level. Markdown will take advantage of richtext-ui built-in link click handling.
New API allows apps to render long Markdown documents lazily at the top level.
InlineContent is not supposed to have its own ParagraphStyle. That kind of workaround makes the content essentially "non-inline". Each inline content composable gets its own Paragraph. Instead, we should address the root of the problem which stems from the fact that default Material3 theming adds LineHeight by default. Sample project now uses Material3 and overrides the default LineHeight to `TextUnit.Unspecified` in its theming. Inline content strictly respecting the line height argument should be addressed by the Compose team.
When rendering markdown lists, some list items may return empty an empty child set. This can be due to markdown content like the following ``` * hello * * world ``` In this case, markdown renderer should just put an empty Text in the second item so that `PrefixListLayout` has something to place and report its size correctly.
Lists should use relative placing to show correctly in RTL layouts.
This update also prepares the library for 1.0.0-alpha01 release.
This drops using AndroidView in HtmlBlock.
Fix a problem with new module docs titles Also change the branch name for updating docs
@halilozercan - I have updated this branch with the latest changes. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.