Styling markdown syntax not rendering markdown in Objective-C - objective-c

I have no preference so far as to which markdown renderer to use (although I'm currently using MMMarkdown)
I would like to style the actual markdown (leaving markdown syntax in place) rather than render the markdown to a separate pane/window.
How should I go about achieving this?
For example:
# Heading -> should display as a heading but with the # still there, not as <h1>Heading</h1>
Thanks

PEG Markdown Highlight does everything that I needed. It also provides a nice style template format for switching between markdown syntax styles.

Related

Prettier, is it possible to disable for a language?

I'm using Prettier with pretty-quick and do not agree with how it formats HTML. I know I can exclude by globs but can I exclude by language so that the HTML in my Vue files are untouched?
No. It's not possible. HTML is considered the "main language" of a .vue file, JS and CSS "embedded". You can only disable formatting for embedded languages by the --embedded-language-formatting off option. As for template tags, the only way to keep them unformatted is to put <!--prettier-ignore--> in front of each of them.

How to show image instead of bullets in react native html text?

I'm using react-native-htmlview to render html text this package gives a lot of customization options what I want to ask is how can I replace bullets with an image or may be a react-native-vector-icon component the library gives an option to replace bullet with a text string can I replace it with icon or image?
Any help would appreciated you may suggest some other light weight package that serve this purpose I also need please keep in mind that I want to apply styles based on the tags and my styles includes the custom font.

Simple way to remove tags (not content) matching a CSS selector?

Is there a simple approach to process an HTML file so that tags matching a certain CSS selector can be deleted? My motivation is that pandoc generates HTML output that in my view is too verbose, surrounding any math expression with <span class="math inline"> ... </span>, when generally ... is enough. For display math the input and output tend to have line breaks, so maybe a dedicated tool would be better than grep or similar. The goal is to reduce bandwidth usage, so anything client-side would be out.
Pandoc inserts those span tags to enable javascript libraries like mathjax to display the math properly... you can of course remove them with your html processing tool of choice, e.g. Nokogiri if you're using ruby, Put something like this in removespans.rb:
require 'nokogiri'
doc = Nokogiri::HTML(File.open("file.html"))
doc.search('span').remove
puts doc
then execute:
pandoc -s -o file.html input.md
ruby removespans.rb > output.html

IntelliJ (IDEA/Webstorm) ignore/accept custom templating tags in HTML documents

I am using custom seperators/tags for template variables in HTML code. My tags are "{[{" "}]}". Can I make IntelliJ IDEA (or WebStorm) ignore completely what is inbetween them? If it matters, it is Go template language with custom tags.
Example :
<div title="{[{.T.T "error"}]}!"></div>
Gets marked as error because of the quotes inside the quotes. It also disables the ability for proper auto indentation or code formatting.
Another example, in this case JavaScript in an HTML document :
<script>
{[{if .Data.User}]}
var userData = {[{.Data.User}]};
{[{end}]}
</script>
This marks the quotes themselves as error.
I don't want IntelliJ to check the template code, just ignoring everything between the brackets would be enough.
No, you can't. IntelliJ IDEA builds a complete parse tree for the entire file, and it is not able to ignore arbitrary chunks of the file.
What you can do is either write a plugin that will be able to parse your template syntax, or change the syntax you use so that it matches more closely an existing template library already supported by IntelliJ IDEA.

Django not rendering css style on text stored in database

I format text with javascript and after that I store it in database, but when I get this text from database and display in a template then django do not apply css format tags, and just display them as text instead of apply. Please tell what is the problem?
maybe you need to use the safe-filter in your template
see the django docu here!