Skip to content

Sometimes markdown images do not get renderedΒ #255

Open
@Mohit21GoJs

Description

@Mohit21GoJs

Hi

I am trying to render markdown in my rn app

Here is the markdown which is not rendering

πŸ›οΈ Available Product Options

═════════

πŸ“¦ Option 1: jbl headphones

πŸ’° Price: AED 199.00

πŸ–ΌοΈ Product Image:

Product Image

πŸ”— πŸ›’ View on Amazon

═══════════════════════════════════════════════════

Here is how it renders:

Image

I am overriding styles of this app in the app like:

const markdownStyles = {
	body: {
		color: "#333",
		fontSize: 16,
		fontFamily: FONT_FAMILY.medium,
	},
	code_inline: {
		backgroundColor: "#eee",
		borderRadius: 4,
		padding: 4,
		fontFamily: FONT_FAMILY.medium,
	},
	// Update image styling
	image: {
		width: '100%',
		height: 200,
		resizeMode: 'contain',
		borderRadius: 8,
		marginVertical: 8,
	},
	// Add container styles for better layout
	container: {
		flex: 1,
	},
	// Add specific style for image container
	imageContainer: {
		flex: 1,
		width: '100%',
		minHeight: 200, // Ensure minimum height for the image
	},
};

Is there a possible fix for this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions