From a176175455f2fa357fa4fe7655a0f97eb5fd423e Mon Sep 17 00:00:00 2001 From: Simon Bromberg <69437320+simondelphia@users.noreply.github.com> Date: Wed, 28 Jun 2023 11:32:47 -0400 Subject: [PATCH 1/6] Update README.md Updated some of the links / installation instructions --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c04f6240..d31fc8a3 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# React Native Markdown Display [![npm version](https://badge.fury.io/js/react-native-markdown-display.svg)](https://badge.fury.io/js/react-native-markdown-display) [![Known Vulnerabilities](https://snyk.io/test/github/iamacup/react-native-markdown-display/badge.svg)](https://snyk.io/test/github/iamacup/react-native-markdown-display) +# React Native Markdown Display [![npm version](https://badge.fury.io/js/@ronradtke%2Freact-native-markdown-display.svg)](https://badge.fury.io/js/@ronradtke%2Freact-native-markdown-display.svg) [![Known Vulnerabilities](https://snyk.io/test/github/iamacup/react-native-markdown-display/badge.svg)](https://snyk.io/test/github/iamacup/react-native-markdown-display) It a 100% compatible CommonMark renderer, a react-native markdown renderer done right. This is __not__ a web-view markdown renderer but a renderer that uses native components for all its elements. These components can be overwritten and styled as needed. @@ -10,12 +10,12 @@ This is intended to be a replacement for react-native-markdown-renderer, with a #### Yarn ```npm -yarn add react-native-markdown-display +yarn add @ronradtke/react-native-markdown-display ``` #### NPM ```npm -npm install -S react-native-markdown-display +npm install -S @ronradtke/react-native-markdown-display ``` ### Get Started From 619d0f054c3b0c02cc25bce5da3e05e0c7dd93ef Mon Sep 17 00:00:00 2001 From: Simon Bromberg <69437320+simondelphia@users.noreply.github.com> Date: Wed, 28 Jun 2023 11:34:04 -0400 Subject: [PATCH 2/6] Update README.md remove extra file extension --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d31fc8a3..04da034e 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# React Native Markdown Display [![npm version](https://badge.fury.io/js/@ronradtke%2Freact-native-markdown-display.svg)](https://badge.fury.io/js/@ronradtke%2Freact-native-markdown-display.svg) [![Known Vulnerabilities](https://snyk.io/test/github/iamacup/react-native-markdown-display/badge.svg)](https://snyk.io/test/github/iamacup/react-native-markdown-display) +# React Native Markdown Display [![npm version](https://badge.fury.io/js/@ronradtke%2Freact-native-markdown-display.svg)](https://badge.fury.io/js/@ronradtke%2Freact-native-markdown-display) [![Known Vulnerabilities](https://snyk.io/test/github/iamacup/react-native-markdown-display/badge.svg)](https://snyk.io/test/github/iamacup/react-native-markdown-display) It a 100% compatible CommonMark renderer, a react-native markdown renderer done right. This is __not__ a web-view markdown renderer but a renderer that uses native components for all its elements. These components can be overwritten and styled as needed. From 51d269132cffeb4f61c6e9211f6b8084687afaa7 Mon Sep 17 00:00:00 2001 From: Simon Bromberg <69437320+simondelphia@users.noreply.github.com> Date: Fri, 7 Jul 2023 14:24:58 -0400 Subject: [PATCH 3/6] Fix typos in markdown imports in readmes --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 04da034e..077e1bf3 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ npm install -S @ronradtke/react-native-markdown-display import React from 'react'; import { SafeAreaView, ScrollView, StatusBar } from 'react-native'; -import Markdownfrom '@ronradtke/react-native-markdown-display'; +import Markdown from '@ronradtke/react-native-markdown-display'; const copy = `# h1 Heading 8-) @@ -847,7 +847,7 @@ Think of the implementation like applying styles in CSS. changes to the `body` e import React from 'react'; import { SafeAreaView, ScrollView, StatusBar } from 'react-native'; -import Markdownfrom '@ronradtke/react-native-markdown-display'; +import Markdown from '@ronradtke/react-native-markdown-display'; const copy = ` This is some text which is red because of the body style, which is also really small! @@ -910,7 +910,7 @@ Styles are used to override how certain rules are styled. The existing implement import React from 'react'; import { SafeAreaView, ScrollView, StatusBar, StyleSheet } from 'react-native'; -import Markdownfrom '@ronradtke/react-native-markdown-display'; +import Markdown from '@ronradtke/react-native-markdown-display'; const styles = StyleSheet.create({ heading1: { @@ -984,7 +984,7 @@ Rules are used to specify how you want certain elements to be displayed. The exi import React from 'react'; import { SafeAreaView, ScrollView, StatusBar, Text } from 'react-native'; -import Markdownfrom '@ronradtke/react-native-markdown-display'; +import Markdown from '@ronradtke/react-native-markdown-display'; const rules = { heading1: (node, children, parent, styles) => @@ -1093,7 +1093,7 @@ It is possible to overwrite this behaviour in one of two ways: import React from 'react'; import { SafeAreaView, ScrollView, StatusBar } from 'react-native'; -import Markdownfrom '@ronradtke/react-native-markdown-display'; +import Markdown from '@ronradtke/react-native-markdown-display'; const copy = `[This is a link!](https://github.com/iamacup/react-native-markdown-display/)`; @@ -1145,7 +1145,7 @@ Something like this with `yourCustomHandlerFunctionOrLogicHere`: import React from 'react'; import { SafeAreaView, ScrollView, StatusBar, Text } from 'react-native'; -import Markdownfrom '@ronradtke/react-native-markdown-display'; +import Markdown from '@ronradtke/react-native-markdown-display'; const copy = `[This is a link!](https://github.com/iamacup/react-native-markdown-display/)`; From e0923852718e4aef6ce22a9fd92fdfa2361d7d8d Mon Sep 17 00:00:00 2001 From: Johannes Biermann <82565675+bi3ri@users.noreply.github.com> Date: Sun, 22 Oct 2023 11:26:56 +0200 Subject: [PATCH 4/6] Update font: Courier -> Courier New In iOS 15 Courier was removed for Courier New font. --- src/lib/styles.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/styles.js b/src/lib/styles.js index 27424acc..f215d408 100644 --- a/src/lib/styles.js +++ b/src/lib/styles.js @@ -92,7 +92,7 @@ export const styles = { borderRadius: 4, ...Platform.select({ ['ios']: { - fontFamily: 'Courier', + fontFamily: 'Courier New', }, ['android']: { fontFamily: 'monospace', @@ -107,7 +107,7 @@ export const styles = { borderRadius: 4, ...Platform.select({ ['ios']: { - fontFamily: 'Courier', + fontFamily: 'Courier New', }, ['android']: { fontFamily: 'monospace', @@ -122,7 +122,7 @@ export const styles = { borderRadius: 4, ...Platform.select({ ['ios']: { - fontFamily: 'Courier', + fontFamily: 'Courier New', }, ['android']: { fontFamily: 'monospace', From 7484044b207d66eb0f30fb426056e01007118174 Mon Sep 17 00:00:00 2001 From: Marco Wettstein Date: Mon, 4 Dec 2023 22:33:06 +0100 Subject: [PATCH 5/6] fix: lib is broken as it is not pure javasript, but a mix out of typescript and javascript not sure how that ended up here, but it breaks the library --- src/lib/renderRules.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/renderRules.js b/src/lib/renderRules.js index 3c8e10b4..7b1ed540 100644 --- a/src/lib/renderRules.js +++ b/src/lib/renderRules.js @@ -7,7 +7,7 @@ import hasParents from './util/hasParents'; import textStyleProps from './data/textStyleProps'; -const renderRules = (Text: Component) => ({ +const renderRules = (Text) => ({ // when unknown elements are introduced, so it wont break unknown: (node, children, parent, styles) => null, From 75a757e2bb6bb4071e9f2d63783980c1ca9ae90f Mon Sep 17 00:00:00 2001 From: Ron Radtke Date: Tue, 21 Jan 2025 21:20:32 +0100 Subject: [PATCH 6/6] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ecca5dfd..618b3396 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ronradtke/react-native-markdown-display", - "version": "8.0.0", + "version": "8.1.0", "description": "Markdown renderer for react-native, with CommonMark spec support + adds syntax extensions & sugar (URL autolinking, typographer), originally created by Mient-jan Stelling as react-native-markdown-renderer", "main": "src/index.js", "types": "src/index.d.ts",