@expensify/react-native-live-markdown 0.1.301 → 0.1.303

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -173,7 +173,7 @@ function parser(input: string) {
173
173
 
174
174
  ## Markdown flavors support
175
175
 
176
- Currently, `react-native-live-markdown` supports only [ExpensiMark](https://github.com/Expensify/expensify-common/blob/main/lib/ExpensiMark.ts) flavor. We are working on CommonMark support as well as possibility to use other Markdown parsers.
176
+ Currently, `react-native-live-markdown` supports only [ExpensiMark](https://github.com/Expensify/expensify-common/blob/main/lib/ExpensiMark.ts) flavor out-of-the-box. You can customize the behavior by passing a custom parser worklet function via the `parser` prop, as detailed in the [Parsing logic](#parsing-logic) section.
177
177
 
178
178
  ## API reference
179
179
 
@@ -30,6 +30,13 @@
30
30
  padding-right: 1px !important;
31
31
  }
32
32
 
33
+ .react-native-live-markdown-input-singleline:empty::before,
34
+ .react-native-live-markdown-input-multiline:empty::before {
35
+ pointer-events: none;
36
+ display: block; /* For Firefox */
37
+ content: attr(placeholder);
38
+ }
39
+
33
40
  .react-native-live-markdown-input-multiline *[data-type='pre'] {
34
41
  line-height: 1.3;
35
42
  display: block;
@@ -30,6 +30,13 @@
30
30
  padding-right: 1px !important;
31
31
  }
32
32
 
33
+ .react-native-live-markdown-input-singleline:empty::before,
34
+ .react-native-live-markdown-input-multiline:empty::before {
35
+ pointer-events: none;
36
+ display: block; /* For Firefox */
37
+ content: attr(placeholder);
38
+ }
39
+
33
40
  .react-native-live-markdown-input-multiline *[data-type='pre'] {
34
41
  line-height: 1.3;
35
42
  display: block;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expensify/react-native-live-markdown",
3
- "version": "0.1.301",
3
+ "version": "0.1.303",
4
4
  "description": "Drop-in replacement for React Native's TextInput component with Markdown formatting.",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -30,6 +30,13 @@
30
30
  padding-right: 1px !important;
31
31
  }
32
32
 
33
+ .react-native-live-markdown-input-singleline:empty::before,
34
+ .react-native-live-markdown-input-multiline:empty::before {
35
+ pointer-events: none;
36
+ display: block; /* For Firefox */
37
+ content: attr(placeholder);
38
+ }
39
+
33
40
  .react-native-live-markdown-input-multiline *[data-type='pre'] {
34
41
  line-height: 1.3;
35
42
  display: block;