Comments (7)
@SundaramMaheshkumar You can define your own md syntax, such as <!--input:value=xxxx--!>
Define your own rehype plug-in to parse your grammar
from react-md-editor.
I am not sure whether I understand you properly.
Please find my codesandbox here.
In there, I have a button called Get content
after the preview. Ideally, I want to get the updated raw markdown content ( as there would be changes when users input in HTML text boxes or checkboxes) on onClick
of that button.
Currently, in that sandbox, I did a crude way of getting the raw HTML from the preview. But if I could get the markdown instead of processing the HTML, it would be great. But I couldn't figure out, how to achieve that!!!
Thanks.
from react-md-editor.
Any suggestion or idea of how to achieve the above? Thank you
from react-md-editor.
Do you want to change the content, and then want to get the changed markdown content?
@jaywcjlove
from react-md-editor.
I am not sure whether I understand you properly.
Please find my codesandbox here.
In there, I have a button called
Get content
after the preview. Ideally, I want to get the updated raw markdown content ( as there would be changes when users input in HTML text boxes or checkboxes) ononClick
of that button.Currently, in that sandbox, I did a crude way of getting the raw HTML from the preview. But if I could get the markdown instead of processing the HTML, it would be great. But I couldn't figure out, how to achieve that!!!
Thanks.
As you see above images and in the sandbox, I type values in HTML text boxes or checkboxes in the preview. Yes, I wanted to get the markdown with these changes. In the sandbox, I did a crude way of getting the HTML and but am not sure how to get the changes in md format itself.
from react-md-editor.
@SundaramMaheshkumar Storing it in HTML comments or HTML attributes might be a good idea, but you'll need to change the markdown content yourself.
from react-md-editor.
Thanks. I'll just use the HTML as the library supports pure HTML too. Because updating HTML and then updating markdown manually seems redundant.
from react-md-editor.
Related Issues (20)
- 预览标题的时候可以屏蔽链接标识吗 HOT 1
- Missing Source Map Files for parse5 in hast-util-raw Dependencies HOT 4
- How can i set textarea(.w-md-editor-text-input)'s parent <div> height style? HOT 6
- IMPORTANT MISSING FEATURE: Prop to limit the character length - maxLength and minLength attributes HOT 2
- [BUG] numbered list can't render number in preview panel HOT 3
- How to have hashtags render as links? HOT 3
- 预览模式下换行符显示问题 HOT 2
- 自适应高度时,切到preview模式,高度没了 HOT 6
- Change font size of editor HOT 1
- css variables 藏在哪里了找不到 HOT 1
- code highlight and rendering style seems not to work well in mac m1 HOT 1
- I need to check why my text is not being properly converted to markdown
- 有没有办法自定义一个toolbar组件 点击弹出dialog 的效果 而不是内嵌到toolbar children 里面的? HOT 2
- is it possible add embedded youtube video in editor ? HOT 7
- Unable to Embed Github gist HOT 3
- Select Specific Languages for Code Highlighting HOT 3
- Deleting <blockquote> in Editor causes Preview Error: NotFoundError - Failed to execute 'removeChild' HOT 2
- Why is there no event listener for text selection? HOT 1
- https://uiwjs.github.io/react-md-editor/ Doesn't load HOT 2
- The HTML style tag can change the style of elements on the page HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-md-editor.