How do I convert #title
to <h1>title</h1>
in java? I'm trying to create an algorithm to convert markdown format to html format.
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
Say that you used a hash at the beginning and the end of the marked word(s), you could use a method like this which would do all of them in a String.
If you called
it would return
Try:
or
If you want to create markdown algorithm look for regular expression.
answer to comment - more about character classes here: